Different style for newsbox with stylesheet.css

About the template and stylesheet - and changing the menu
Post Reply
bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Different style for newsbox with stylesheet.css

Post by bastingse » Tue Dec 09, 2014 6:40 pm

Is it possible to add a class or ID to the stylesheet.css so i can give the text and hyperlinks in a newsbox a different color?
The problem is on this website that i'm developping: http://salarisadministratielimburg.nl/index.php
In the 'footer' i'm using a dark background color so the regular colors in the stylesheet will not fit here. I now did some rare tricks to get the right result.

Thanks in advance!

cmb
Posts: 14227
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Different style for newsbox with stylesheet.css

Post by cmb » Tue Dec 09, 2014 6:47 pm

Well, you can set the class attribute of the respective <td> Element in the template like so:

Code: Select all

<td class="footer" bgcolor="#032D58" align="left" width="306" valign="top">
			<font color="#ffffff"><?=newsbox(Footer_rechts)?></font></td>
And then define rules in the stylesheet:

Code: Select all

.footer a, .footer p {
    color: yellow;
}
Christoph M. Becker – Plugins for CMSimple_XH

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Different style for newsbox with stylesheet.css

Post by bastingse » Tue Dec 09, 2014 6:54 pm

Thanks Christoph, appreciate your quick response !!
Going to try that tomorrow!!!

Thanks!!!

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Different style for newsbox with stylesheet.css

Post by bastingse » Sat Dec 13, 2014 11:19 am

Works perfectly !!!!
Thanks!

Post Reply