• 0

CSS question


Question

#leftmenu
{
	position:absolute;
	width:150px;
	top:80px;
	left:20px;
	line-height:18px;
	border: solid 1px silver;
	background-color:#E5EBF6;
	padding:5px 5px 5px 5px;
	z-index:2;
}


#leftmenu>a:visited
{
	text-decoration:none;
}

Shouldn't the visited link in the div tag of leftmenu not be underlined after visited or am I doing something wrong???

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
#leftmenu>a:visited
{
	text-decoration:none;
}

Shouldn't the visited link in the div tag of leftmenu not be underlined after visited or am I doing something wrong???

What does the HTML look like? Did you try removing the >? Did you try refreshing the page after clicking on the link?

Link to comment
Share on other sites

  • 0

The html looks like this:

<div id="leftmenu">
	<div class="section" align="center">menu</div>
	<br>
	<a href="#">home</a><br>
	<a href="#">contacts</a>
	<hr>
	<a href="test.htm">test link</a>
</div>

I'm just testing this so this won't be the "actual" menu...

Link to comment
Share on other sites

  • 0

#leftmenu>a:visited
{
	color:blue;
	text-decoration:none;
}

#leftmenu
{
	position:absolute;
	width:150px;
	top:80px;
	left:20px;
	line-height:18px;
	border: solid 1px silver;
	background-color:#E5EBF6;
	padding:5px 5px 5px 5px;
	z-index:2;
}

The links are valid and everything and still doesn't work...

Link to comment
Share on other sites

  • 0

Even after you completely refreshed the page (i.e. flush cache, etc.)? What browser? In any case, your CSS code looks right. Any misbehavior is probably a browser bug. Sorry I couldn't be of any more help.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.