CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 29th, 2012, 10:44 AM
Rabastan Rabastan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 9 Rabastan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 18 sec
Reputation Power: 0
Horizontal List is causing cell to move down?

Will explain this as best as I can.

I am including a horizontal CSS menu in a website I am making for a friend, when I simply use text everything is fine, as in picture below. This is a cropped screenshot btw.


However when I add the list I get this.

see how the entire cell has moved down?

here is my code.

the CSS is:
Code:
body,
html {
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	margin:0;
	padding:0;
	color:#000;
	background-image:url(../images/site_bg.png);
	background-repeat:repeat-x;
}

#container {
	width:950px;
	margin:0 auto;
	text-align:center;
}
/*End Global Styles Here*/

/*Begin Head Styles Here*/
#head {
	height:192px;
	background:#ebebeb;
}

/*Begin Nav Styles Here*/
#nav {
	height:47px;
	background:#ef4036;
}

#nav li {
    display:inline;
}

#nav li a {   
	color:#FFF;
	font-size:16px;
	font-weight:bold;
	text-decoration: none;
}
/*End Nav Styles Here*/


The Menu using list:
Code:
<div id="nav">
	<ul>
    	<li><a href="#">Home</a></li>
    	<li><a href="#">About</a></li>
    	<li><a href="#">Services</a></li>
    	<li><a href="#">Products</a></li>
    	<li><a href="#">Contact Us</a></li>
	</ul>
</div>


And Without:
Code:
<div id="nav">
	Main Navigation Here
</div>


nav.php is loaded into a cell head.php as a php include.

Thank You in advance
Rab

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Horizontal List is causing cell to move down?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap