- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 80 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Change only the block hyperlinks color [ ]
Author
Message
Pitcher
Premium
Joined: May 28, 2003
Posts: 9
Location: Norway
Posted:
Thu Oct 30, 2003 6:43 pm
Hello
I making a new theme and need white links in blocks and black links in the news part etc.. I have defined this in the style.css
Code:
.boxcontent {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
a.boxcontent:visited{color:#FFFFFF}
a.boxcontent:active{color:#FFFFFF}
a.boxcontent:link{color:#FFFFFF}
a.boxcontent:hover{color:#FFFFFF}
for the blocks and
Code:
a:link,a:active,a:visited,a.postlink{color:#000000;text-decoration:none}
a:hover{color:#000000}
for the rest of the links.
But it won't work, the default link color overrides the white one. Is there anything I have done wrong in the css file? Please help, I have a deadline for this project..
_________________ Pitcher
Homepage: http://www.dragonflycms.no
Pitcher
Premium
Joined: May 28, 2003
Posts: 9
Location: Norway
Posted:
Sat Nov 01, 2003 7:38 am
Pitcher
Premium
Joined: May 28, 2003
Posts: 9
Location: Norway
Posted:
Sun Nov 02, 2003 4:14 pm
Well, nobody does the job for you said a vise man to me some time.. I found the solution by my self..
here is what you have to add to the style.css file
Code:
div#menu a {text-decoration: underline; color: white; FONT-FAMILY: Verdana, Helvetica}
div#menu a:hover { color: #FFFF00; FONT-FAMILY: Verdana, Helvetica}
and call it by
Code:
<div id="menu">$content</div>
Hope this can be usefull for someone else..
_________________ Pitcher
Homepage: http://www.dragonflycms.no
IACOJ
Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Sun Nov 02, 2003 4:25 pm
Sorry I didn't see your thread until just now.
Make sure you also add the same defines to the forum.css so the links show up correctly when you are viewing pages that use that css.
_________________http://castlecops.com
<b>Microsoft MVP Windows-Security 2005</b> <img src="http://castlecops.com/zx/Paul/mvp.gif">
Pitcher
Premium
Joined: May 28, 2003
Posts: 9
Location: Norway
Posted:
Sun Nov 02, 2003 4:41 pm
Better late than never
I use the style.css file for the forum also, why make it twice when you can use the same css file for both
_________________ Pitcher
Homepage: http://www.dragonflycms.no
chris-au
Elite Nuker
Joined: Jan 31, 2003
Posts: 717
Posted:
Tue Nov 04, 2003 11:28 pm
Pitcher wrote:
Better late than never
I use the style.css file for the forum also, why make it twice when you can use the same css file for both
You can, if you make the link to the style sheets in your script to the one you want to use I would think.
After all, a style sheet is only included.
_________________Chris
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum