Forum Moderators: not2easy

Message Too Old, No Replies

CSS for only a certain part of the document

Is it possible to redefine a certain tag only for the titlebar

         

AcsCh

10:33 am on Jun 27, 2003 (gmt 0)

10+ Year Member



It sounds to me like an easy thing but I don't get it right. I have a (dark background) titlebar where I would like to have the linktexts in white, for the rest of the document the color according the imported stylesheet. How can I define that? I can NOT define any style IN the A TAG, as this tag is created automaticaly by a Content Management System.

example:

<import standard stylesheet in head>

<from here all linktexts have to be white>

<titlebar background=dark>
<a href="someurl">text should be white</a>
<!-- THIS TAG STRING CAN NOT BE CHANGED -->
</titlebar>

<From here again normal standard stylesheet attributs. >

<Content backgroung=white>
BASDFKLJSDFL AJFDFJ L
</CONTENT>

Any ideas?

BlobFisk

10:40 am on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi AcsCh,

If you wrap your title bar in a div, you can redefine the links for that div in your stylesheet:

#divName a:link {...}
#divName a:visited {...}
#divName a:hover {...}
#divName a:active {...}

So, any links within the div (id="divName") will use the styles that you outline using the rules above. All other links will use your default anchor styling.

HTH

AcsCh

12:20 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



Thanks a lot BlobFisk, will try that!