Location: PHPKode > scripts > FineDiv > finediv/sample.php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<html><head><title>Finediv Sample</title>

include 'class_finediv.php';
$fd_normal = new finediv( 'css' ); // You need a folder named "css" along with liquidcorners.inc in it
$fd_normal->borderwidth = 3;

<h1>A finediv sample</h1>



Finediv is a PHP solution to show boxes with rounded corners using css and only one image.




<div style="width:50%; margin: 1em auto">

$fd_normal->put('', 'To put a rounded box to a certain place or to size it,
just wrap it into another div', 'There are three places to put some text into a finediv box: top, middle and bottom');



for( $i = 1; $i < 9; $i++ )

echo '<div style="width:10em;float:left; margin:1em">'.
      $fd_normal->get( 'Text for Top', 'Text for middle: box #'.$i.' of 8', 'Text for bottom' ).

Return current item: FineDiv