Location: PHPKode > scripts > FineDiv > finediv/liquidcorners.inc
/*
	| liquidcorners.css; feel free to adapt the style!
	| ================================================
	| use: 4 corners with borderline outside a contentbox with class="inside";
	|      image  = upper half: top left corner, long borderline, top right corner
	|               under half: bottom left corner, long borderline, bottom right corner
	|      CHANGE = you have to change this for fitting to your image
	|      YCC    = You Can Change (or omit), if wanted
	|      DNC    = Do Not Change
	| credits: original by francky kleyneman, see article/tutorial in Francky's Developers Corner:
	|          http://home.tiscali.nl/developerscorner/liquidcorners/liquidcorners.htm
	| adapted
	| by.....: Peter Klauer (class_finediv.php) [date]
	|
	| + please let this text & links intact for a next user +
*/
.[name]-top-left, .[name]-top-right, .[name]-bottom-left, .[name]-bottom-right {
	background-image: url([image]); /* CHANGE: path and name of your image */
	height: [radius]px;       /* CHANGE: replace by the height of one of your corners (= 1/2 height of the image) */
	font-size: 2px;    /* DNC: correction IE for height of the <div>'s */
	}
.[name]-top-left, .[name]-bottom-left {
	margin-right: [radius]px; /* CHANGE: replace by the width of one of your corners */
	}
.[name]-top-right, .[name]-bottom-right {
	margin-left: [radius]px;  /* CHANGE: replace by the width of one of your corners */
	margin-top: -[radius]px;  /* CHANGE: replace by the height of one of your corners */
	}
.[name]-top-right {
	background-position: 100% 0;    /* DNC: position right corner at right side, no vertical changes */
	}
.[name]-bottom-left  {
	background-position: 0 -[radius]px;    /* CHANGE: replace second number by negative height of one of your corners */
	}
.[name]-bottom-right {
	background-position: 100% -[radius]px; /* CHANGE: replace second number by negative height of one of your corners */
	}
.[name]-inside {
	border-left: [border]; /* YCC: color & properties of the left-borderline */
	border-right: [border];/* YCC: color & properties of the right-borderline */
	background: #[color];            /* YCC: background-color of the inside */
	color: #[textcolor];                 /* YCC: default text-color of the inside */
	padding-left: 10px;             /* YCC: all texts at some distance of the left border */
	padding-right:10px;             /* YCC: all texts at some distance of the right border */
  [style]
	}
.[name]-notopgap    { margin-top: 0; [topstyle]}    /* DNC: to avoid splitting of the box */
.[name]-nobottomgap { margin-bottom: -1px; padding-bottom: 1px; [bottomstyle] } /* DNC: to avoid splitting of the box */

/*
implementation in the page:
	...
	<head>
	<link rel="stylesheet" type="text/css" href="[cssfile]">
	...
	</head>

	<body>
	...
	<div class="[name]-top-left"></div><div class="[name]-top-right"></div>
		<div class="[name]-inside">
		<p class="[name]-notopgap">Your text & other things inside</p>
		...
		<p class="[name]-nobottomgap">...</p>
		</div>
	<div class="[name]-bottom-left"></div><div class="[name]-bottom-right"></div>
	...
	</body>
*/
Return current item: FineDiv