red_75116
asked on
questions about CSS Style sheets
I am trying to modify a web page which references an external CSS style sheet.
I am trying to change the color and located the classes that seem to be refrencing the css.
However, I dont under this this. Are these links, active etc using the parameters from the visited section or some other place in the CSS
body.LeftMenu08 .sectionentity08 a,
body.LeftMenu08 .sectionentity08 a:link,
body.LeftMenu08 .sectionentity08 a:active,
body.LeftMenu08 .sectionentity08 a:visited
{
display:block;
padding:3px 10px 3px 15px;
color:#666;
background:#fff1c4;
width:100%;
text-decoration:none;
}
I am trying to change the color and located the classes that seem to be refrencing the css.
However, I dont under this this. Are these links, active etc using the parameters from the visited section or some other place in the CSS
body.LeftMenu08 .sectionentity08 a,
body.LeftMenu08 .sectionentity08 a:link,
body.LeftMenu08 .sectionentity08 a:active,
body.LeftMenu08 .sectionentity08 a:visited
{
display:block;
padding:3px 10px 3px 15px;
color:#666;
background:#fff1c4;
width:100%;
text-decoration:none;
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I agree, I would name the styles a little better. These look like they were from a theme or automated html creator.
Better to have a style that is global like below
Better to have a style that is global like below
a:link
{
display:block;
padding:3px 10px 3px 15px;
color:black;
background:#fff1c4;
width:100%;
text-decoration:none;
}
a:hover
{
color:red;
}
a:visited
{
color:blue;
}
Then for something special, create some unique styles.special a:link
{
display:block;
padding:3px 10px 3px 15px;
color:red;
background:#fff1c4;
width:100%;
text-decoration:none;
}
.special a:hover
{
color:blue;
}
.special a:visited
{
color:green;
}
ASKER
Thanks for your replies. I agree the format is confusing. There is one style sheet for each theme for the entire site. I was having trouble following it, but your comments helped me sort it out.
the style wouldn't apply to all links on the page only links that feel within the hierarchy body.LeftMenu08 .sectionentity08 a