Page 1 of 1

override plone.css

PostPosted: Sat May 26, 2012 12:37 am
by samhans
hai steve and all friends,

kindly tell me how i could override the plone.css. The basic thing is that i want to give a background color to my page

please guide me to the answer.


thanks

samhans

Re: override plone.css

PostPosted: Mon May 28, 2012 12:17 pm
by shannah
You can override any CSS styles in your own stylesheet. That's the great thing about CSS. The last rule loaded takes precedence over all previous rules.

You can add your own stylesheet in many ways. Here's one.

In the beforeHandleRequest() method of your application delegate class:
Code: Select all
$app = Dataface_Application::getInstance();
$app->addHeadContent('<link rel="stylesheet" type="text/css" href="path/to/my/styles.css"/>');


-Steve