Jump to content

Recommended Posts

Posted

Hi all,

 

This is no doubt me, ill have missed something or other. Wondering if anyone can look over.

 

Its from the navbar tutorial. Works fine in Firefox but in IE the buttons jump about as you hover.

 

<!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=UTF=8" />

<title>Untitled Document</title>

<link href="nav.css" rel="stylesheet" type="text/css" />

</head>

 

<body>

<ul>

<li><a href="">One</a></li>

<li><a href="">Two</a></li>

<li><a href="">Three</a></li>

<li><a href="">Four</a></li>

</ul>

 

</body>

</html>

 

ul {

margin: 0px;

padding: 0px;

list-style-image: none;

}

ul li a {

display: block;

height: 40px;

width: 200px;

line-height: 40px;

text-decoration: none;

color: #FFFFFF;

text-indent: 75px;

background-image: url(pixy-rollover.gif);

background-repeat: no-repeat;

margin-bottom: 20px;

background-position: right;

}

ul li a:hover {

background-image: url(pixy-rollover.gif);

background-repeat: no-repeat;

background-position: left;

}

 

 

Could someone explain what I have done wrong or why this is happening. Hopefully I will learn something new.

Posted

The image itself probably isn't the problem, but it would be helpful to have so we can see exactly what you are working with.

 

To add an image, click the "Add Reply" button at the bottom of the page. On the page that appears, there is an "attachments" section below the comment box. Upload your file there.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...