Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Link Colors in CSS
Posted: 30 January 2006 10:49 AM   [ Ignore ]  
Summer Student
Total Posts:  8
Joined  2005-10-27

I am using a set template and have modified it.  Blog at http://www.connellfoley.com/hselaw/

The CSS uses a global color scheme for links. This list is not inside a <div>

a:link { color: #900000; border-bottom: 1px solid #EDC2D5; background-color: transparent; text-decoration: none; }
a:hover { color: #900000; border: 0; background-color: #EDC2D5; text-decoration: none; }
a:visited { color: #900000; border: 0; background-color: transparent; text-decoration: none; }

I have created a <div> for boxes that separte out the info and each will be links to other blogs.
I have put in a list for link colors, but it is not overiding the main list.  The link text is still red instead of white as it would be if not a link.

#box {
margin: 0px;
padding: 5px 10px;
font-family: lucida grande, verdana, arial, sans-serif;
font-size: 11px;
width: 125px;
color: #ffffff;
a:link { color: #ffffff; border-bottom: 1px solid #EDC2D5; background-color: transparent; text-decoration: none; }
a:hover { color: #ffffff; border: 0; background-color: #EDC2D5; text-decoration: none; }
a:visited { color: #ffffff; border: 0; background-color: transparent; text-decoration: none; }
text-align: center;
border: 1px solid #666;
background: #336666;
}

What am I doing wrong?. 
THANKS

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 61005 Total Logged-in Users: 0
Total Topics: 73775 Total Anonymous Users: 0
Total Replies: 397991 Total Guests: 43
Total Posts: 471766    
Members ( View Memberlist )
Active Members: