Banner image

CSS tricks

There are a lot of CSS files included in biscuits. You can add your own application CSS file. Put your CSS file into you application area, in the css directory. Give it a name, such as myapp.css (we prefer not to use any capital letters in file names)

Loading your CSS from your view controller

To load your CSS file into your page, add a line of PHP such as this to your view controller.

$this->addJS('biscuits.js', true);

controlling the <body> tag

The elements in your pages can be given classes and IDs in the normal way using your editor ( Eg: netbeans ) The <body> tag is special, in that it is not part of the content that you create when you edit a new view file. Biscuits provides a variable for you to set called $bodyId. You can set the body id using a line of PHP as follows:
$this->bodyId = 'my-body';
Once the body tag has an id, you can use CSS and JS to affect the style of the body.

Some CSS tips

iBiscuits LOGO

380 memberDB.php INSERT INTO et_page_visits ( vuid,vpage,vreferrer,vtime,vlang,vagent,vbot,vversion,vguest,vip) VALUES ( "1","http://englishtap.com/help/css-style","Unknown","1534616689","","CCBot/2.0 (https://commoncrawl.org/faq/)","","biscuits-12y","","54.80.87.62") ON DUPLICATE KEY UPDATE vuid = "1" ,vpage = "http://englishtap.com/help/css-style" ,vreferrer = "Unknown" ,vtime = "1534616689" ,vlang = "" ,vagent = "CCBot/2.0 (https://commoncrawl.org/faq/)" ,vbot = "" ,vversion = "biscuits-12y" ,vguest = "" ,vip = "54.80.87.62"
538 engine.php getContent help