override plone.css

Archived from the Xataface Users forum.

samhans — Sat May 26, 2012 12:37 am

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


shannah — Mon May 28, 2012 12:17 pm

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