Advertisement

10.29.2007 at 12:49PM PDT, ID: 22925332
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Anchor tag in div taking on values of another div

Asked by birstein in Cascading Style Sheets (CSS), Internet Explorer Web Browser, Extensible HTML (XHTML)

Tags: , , , ,

Please look at the simple XHTML/CSS document below. When I click on the link in the <content> div the text of the link "disappears" because it takes on the value of the <sidebar> div a:visited css, which says the color should be #FFF or white (white on white disappears). What's extremely weird is that a:link works properly, taking its value from <content> a:link css (text-decoration: underline), not from <sidebar> a:link (tex-decoration: none). So why doesn't the a:visited work properly and apply color #036? Any help much appreciated. I'm really stumped on this one. . . I'm using IE7 browser, by the way. . .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
html,body{margin:0;padding:0; font-family: Arial, Helvetica, sans-serif; color: #CC0033; background-color:#FEFEF3; font-size: 12px;}


div#container{width:950px;margin:0 auto; position: relative}
div#content{float:right;width:760px;}
div#sidebar{float:left;width:160px;}

div#container{border: 1px solid #999999;background-color:#FFF; margin-top: 5px;}

div#content a:link, a:visited {
color:#036;
text-decoration:underline;
}

div#sidebar ul
{
margin-left: 0;
padding-left: 0;
list-style-type: none;
}

div#sidebar li
{
display: block;
padding: 5px 0px 5px 5px;
width: 155px;
background-color: #69c;
border-bottom: #f7fbfa 1px solid;
}

div#sidebar a:link, a:visited
{
color:#FFF;
text-decoration:none;
}

div#sidebar a:hover
{color:#F60;}
</style>
<script type="text/javascript" src="scripts/global.js"></script>

</head>

<body>
<div id="container">

<div id="content">This is the link: <br />
<a href="http://www.adobe.com">A regular hyperlink</a>
</div>

<div id="sidebar">
<ul>
  <li><a href="description.html"><strong>Description</strong></a></li>
  <li><a href="changed.html"><strong>What's Changed</strong></a></li>
  <li><a href="benefits.html"><strong>Benefits</strong></a></li>
  <li><a href="tryit.html"><strong>Try It</strong></a></li>
  <li><a href="references.html"><strong>References</strong></a></li>
</ul>
</div>



</div>
</body>
</html>Start Free Trial
[+][-]10.29.2007 at 01:10PM PDT, ID: 20172877

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), Internet Explorer Web Browser, Extensible HTML (XHTML)
Tags: anchor, tag, css, div, ie7
Sign Up Now!
Solution Provided By: PanaG
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628