0

*Thoght I fixed it, I was wrong : (

Hey Guys,

Ok so here is my problem. I have created a three button horizontal navigational bar and want it to float to the right of my logo. My fist button the home button is in the spot i want it, although the other two are below the first button. Here is some of the css and html code that i am using:

Here is the css:

#navcontainer
{
margin: 0px 20px 0px 0px;
float: right;
width: 554px;
}

#navcontainer ul
{
margin: 0px;
padding: 0px;
list-style-type: none;
text-align: left;
}

#home
{
text-decoration: none;
background: url('myhomebutton.jpg') no-repeat top left;
margin: 0px 0px 0px 0px;
padding-top: 0px;
width: 192px;
height: 198px;
}

#home:hover
{
background: url('overmyhomebutton.jpg') no-repeat top left;
}

#work
{
text-decoration: none;
background: url('workbutton.jpg') no-repeat top left;
margin: 0px 0px 0px 192px;
width: 156px;
height: 198px;
}

#work:hover
{
background: url('overworkbutton.jpg') no-repeat top left;
}

#contact
{
text-decoration: none;
background: url('mycontactbutton.jpg') no-repeat top left;
margin: 0px 0px 0px 156px;
padding-top: 0px;
width: 206px;
height: 198px;
}

#contact:hover
{
background: url('myovercontactbutton.jpg') no-repeat top left;
}

Here is the HTML code:

<div id="header">
  <img src="foliologo.jpg" width="324" height="198" />
  
  <div id="navcontainer">
<ul id="navlist">
<li id="home"><a href="#" id="current"></a></li>
<li id="work"><a href="#"></a></li>
<li id="contact"><a href="#"></a></li>
</ul>
</div>


  </div>
3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by drewpark88
1

Try putting this in your css.

#navcontainer li 	{
                        display:inline;
		 	}
Votes + Comments
Thanks for the help : )
1

Try these changes;

#home {
    text-decoration: none;
    background: url('myhomebutton.jpg') no-repeat top left;
    margin: 0px 0px 0px 0px;
    padding-top: 0px;
    width: 192px;
    height: 198px;
	float:left
}

#work {
    text-decoration: none;
    background: url('workbutton.jpg') no-repeat top left;
    margin: 0px 0px 0px 192px;
    width: 156px;
    height: 198px;
	position:relative;
	float:left;
}

#contact {
    text-decoration: none;
    background: url('mycontactbutton.jpg') no-repeat top left;
    margin: 0px 0px 0px 156px;
    padding-top: 0px;
    width: 206px;
    height: 198px;
	position:relative;
}
Votes + Comments
Great Job!
0

Thanks everyone, I guess I overlooked some of the stuff you mentioned. I appreciate you helping out! : )

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.