Changing link color...
 
Notifications
Clear all

Changing link colors in Elegance

9 Posts
4 Users
0 Reactions
2,197 Views
(@amalthia)
Posts: 93
Estimable Member
Topic starter
 

Hi I can't seem to figure out how to modify the .css file to change the link colors in the content box, or in the content header/footer boxes. I found the part at the top of the script where you can change the link colors for the whole site but I need more control over what the links are doing in the tables.

url: http://amalthia.mediawood.net/ebooks/index.php
username: ebooks
pass: forus

I'd appreciate any and all help.


 
Posted : 05/02/2008 1:42 pm
(@amalthia)
Posts: 93
Estimable Member
Topic starter
 

Hey just need to know if my question made sense??? it's been over a week and no response. So I figured maybe I did something wrong with my request? And I may need to reword and repost?


 
Posted : 14/02/2008 2:58 am
(@tammy)
Posts: 2577
Member Moderator
 

I don't know what boxes you're talking about, but generally you control this using the ID or class for the link or surrounding boxes. 


 
Posted : 14/02/2008 12:30 pm
(@carissa)
Posts: 791
Member Moderator
 

You don't need to repost, your request made perfect sense. Probably people were put off by the login box.

The simple answer to your question is that there is no way to do this with the existing CSS.

To change the link color in the header, find the section commented to be the links in the menu. To change the color in the footer, you'll have to add specific codes similar to the codes to change the links in the menu. Start by defining "#footer a" and "#footer a:hover"

Any more control than that and you'll have to add more divs and define them.


 
Posted : 14/02/2008 12:34 pm
(@amalthia)
Posts: 93
Estimable Member
Topic starter
 

I don't know what boxes you're talking about, but generally you control this using the ID or class for the link or surrounding boxes. 

I was referring to the content box headers, the header is dark blue, the middle is white, and the footer is dark blue. the problem is links are displayed in the white portion and the dark blue portion which as you can probably guess makes the links almost unreadable in the dark blue portion of the content box. Or I can make it almost unreadable in the white portion of the box but readable in the dark blue portion.

I'm trying to find a way around that problem without having to redo the color scheme of my site.

"you control this using the ID or class for the link or surrounding boxes"

Is there anyway you can give an example code? I think once I see what you're talking about I can figure it out from there. (I don't want to change colors in the content boxes, just the links)

Thanks for your time.


 
Posted : 14/02/2008 1:31 pm
(@amalthia)
Posts: 93
Estimable Member
Topic starter
 

To change the link color in the header, find the section commented to be the links in the menu. To change the color in the footer, you'll have to add specific codes similar to the codes to change the links in the menu. Start by defining "#footer a" and "#footer a:hover"

Any more control than that and you'll have to add more divs and define them.

So how do you add more divs and define them??

I already found the section that changes the footer at the bottom of the website but that footer is different from the one in the content box. πŸ™ I like your idea of adding divs but not sure what you mean by that and how to do it.

Thanks for your time.


 
Posted : 14/02/2008 1:36 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

You need to add more divs in the tpl files of the skin.

If you need help learning how to make div's, then you need to look at css help sites.

this one may help:
http://www.desilva.biz/css/csslink2.html


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 15/02/2008 2:09 pm
(@amalthia)
Posts: 93
Estimable Member
Topic starter
 

You need to add more divs in the tpl files of the skin.

If you need help learning how to make div's, then you need to look at css help sites.

this one may help:
http://www.desilva.biz/css/csslink2.html

thanks! Will give this a shot tonight. πŸ™‚


 
Posted : 15/02/2008 3:03 pm
(@amalthia)
Posts: 93
Estimable Member
Topic starter
 

You need to add more divs in the tpl files of the skin.

If you need help learning how to make div's, then you need to look at css help sites.

this one may help:
http://www.desilva.biz/css/csslink2.html

Okay I tried what you suggested and it didn't work. I showed it to a co-worker and he said I needed to do this to make the new class show up.

Take this line of code:
<a href=""viewuser.php?uid=43">Big" Pink</a>
And change it to
<a href=""viewuser.php?uid=43"" class="headerlink">Big Pink</a>

And in the stylesheet add (making any appropriate style changes you need):

A.headerlink
{
    COLOR: green
}
A.headerlink:visited
{
    COLOR: maroon
}
A.headerlink:active
{
    COLOR: purple
}

I have no clue what php file affects the links that are generated in the content box, it looks like I need to add the class there so the links will change colors.

Again, I'd appreciate any and all help.
Amalthia


 
Posted : 22/02/2008 5:19 pm
Share: