override plone.css

A place for users and developers of the Xataface to discuss and receive support.

override plone.css

Postby 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
samhans
 
Posts: 96
Joined: Fri Feb 10, 2012 1:22 am

Re: override plone.css

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved