Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Border beneath Menu button
 

Tintin81




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 11:21 PM  
Hey,

Please have a look at my site: http://www.timokleemann.com

Check out the main menu at the top right corner. When you select a menu page
,
there should appear a blue bar just beneath it and it works just fine in
Mozilla and Safari. In IE6, however, the bar is not there and I can't figure
out why.

This is the HTML:

<div id="nav">
<ul>
<li><a href="index.php?page=home">Home</a></li>|
<li><a href="index.php?page=about">About</a></li>|
<li><a href="index.php?page=photos">Photos</a></li>|
<li><a href="index.php?page=links">Links</a></li>|
<li><a href="index.php?page=contact">Contact</a></li>
</ul>
</div>



And this is the CSS:

#nav {
width: 700px;
margin-right: auto;
margin-left: auto;
text-align: right;
}

#nav #current {
border-bottom: 5px solid #308bd9;
}

#nav ul{
margin: 0;
padding: 0;
padding-top: 13px;
list-style-type: none;
color: #808080;
}

#nav li {
display: inline;
}

#nav a:link,
#nav a:visited {
color: #000000;
font-weight: bold;
margin: 0 1em;
text-decoration: none;
padding-bottom: 6px;
}

#nav a:hover,
#nav a:focus {
border-bottom: 5px solid #8bcbff;
}


How can I make this work in IE?





Post Follow-Up to this message ]
Re: Border beneath Menu button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 11:21 PM  
I haven't come across that before. I have an answer, more by trial and
error, rather than knowing why.

If you insert a <br style="clear: both;" /> after the nav </ul> (see
below) the blue lines should appear on hover in PCIE6.

I think there must be a difinitive reason and a solution. Maybe someone
can answer that.



<div id="nav">

<ul>
<li><a href="index.php?page=home">Home</a></li>|
<li><a href="index.php?page=about">About</a></li>|
<li><a href="index.php?page=photos">Photos</a></li>|
<li><a href="index.php?page=links">Links</a></li>|
<li><a href="index.php?page=contact">Contact</a></li>
</ul>
<br style="clear: both;" />
</div>







Tintin81 wrote:

> Hey,
>
>  Please have a look at my site: http://www.timokleemann.com
>
>  Check out the main menu at the top right corner. When you select a menu p
age,
> there should appear a blue bar just beneath it and it works just fine in
> Mozilla and Safari. In IE6, however, the bar is not there and I can't figu
re
> out why.
>
>  This is the HTML:
>
>  		<div id="nav">
>  			<ul>
>  				<li><a href="index.php?page=home">Home</a></li>|
>  				<li><a href="index.php?page=about">About</a></li>|
>  				<li><a href="index.php?page=photos">Photos</a></li>|
>  				<li><a href="index.php?page=links">Links</a></li>|
>  				<li><a href="index.php?page=contact">Contact</a></li>
>  			</ul>
>  		</div>
>
>
>
>  And this is the CSS:
>
>  #nav {
>  	width: 700px;
>  	margin-right: auto;
>  	margin-left: auto;
>  	text-align: right;
>  }
>
>  #nav #current {
>  	border-bottom: 5px solid #308bd9;
>  }
>
>  #nav ul{
>  	margin: 0;
>  	padding: 0;
>  	padding-top: 13px;
>  	list-style-type: none;
>  	color: #808080;
>  }
>
>  #nav li {
>  	display: inline;
>  }
>
>  #nav a:link,
>  #nav a:visited {
>  	color: #000000;
>  	font-weight: bold;
>  	margin: 0 1em;
>  	text-decoration: none;
>  	padding-bottom: 6px;
>  }
>
>  #nav a:hover,
>  #nav a:focus {
>  	border-bottom: 5px solid #8bcbff;
>  }
>
>
>  How can I make this work in IE?
>
>
>



Post Follow-Up to this message ]
Re: Border beneath Menu button
 

Tintin81




quote this post edit post

IP Loged report this post

Old Post  02-28-06 - 11:22 PM  
Works great! Thanks a lot!!!


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 06:00 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Dreamweaver archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top