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 27th, 2012, 01:44 PM
Mike1002 Mike1002 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 Mike1002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 52 sec
Reputation Power: 0
CSS nav issues

Hi.

Im in the processing of designing a site based on the Liquid Gem Responsive HTML Template.

Ive 6 items in my menu, and no matter which bit im changing i cant seem to make the menu fit on 1 line.

I'd like all the nav items to be on one line when viewed on an average desktop

(site here http:// modernhuman.mmedesigns.co.uk/3/ )

There seems to be some sort of padding around each link item - as when i change the width of the nav area its just spacing out the first row.

Any help would be great.

Thanks,
Mike.

Reply With Quote
  #2  
Old December 3rd, 2012, 07:10 AM
prcAdap's Avatar
prcAdap prcAdap is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Mar 2005
Location: Tír na nÓg
Posts: 1,199 prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 10 h 32 m 10 sec
Reputation Power: 177
You've got nav set to 400px and li set to 25%.
Each li will only be allowed 100px.
Did you give up trying to get 6 menu items working?

Last edited by prcAdap : December 3rd, 2012 at 07:13 AM.

Reply With Quote
  #3  
Old December 3rd, 2012, 07:30 AM
prcAdap's Avatar
prcAdap prcAdap is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Mar 2005
Location: Tír na nÓg
Posts: 1,199 prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level)prcAdap User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 10 h 32 m 10 sec
Reputation Power: 177
To get the five elements you currently have on your page to display in one line you need to increase the space.

I increased the nav width to 700px
I reduced the nav ul li width from 25% to 20% ... since you have 5 items!!

And, to get rid of the odd padding as you described ...

I deleted width on the nav ul li a that was at 90%.

Now, all the menu items are on one line.
If you don't like the size then change the font size.

Reply With Quote
  #4  
Old December 3rd, 2012, 08:02 AM
atta_akbar atta_akbar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 9 atta_akbar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 41 m 28 sec
Reputation Power: 0
css nav_item

Hey Friend,
I am new in web development.I dont know much about web designing but i think this will be help full for you try to make menu like that.
Code:
<html> 
<head> 	
<title>Menu</title>   
</head> 
<body>  
<style> #menu 
{ 	font-size:20px; 	float:right; 	margin:70px 70px 0 ; 	 } 

#menu ul li 
{ 	padding:0 0 0 30px; 	display:inline; 	list-style:none; 	 } 
</style> 
<div id="menu"> 
<ul> 
<li><a href="#">Home</a></li> 
<li><a href="#">Gallery</a></li> 
<li><a href="#">Work</a></li> 
<li><a href="#">About Us</a></li>
 <li><a href="#">item-4</a></li> 
<li><a href="#">item-5</a>
</li> <li><a href="#">Contact Us</a></li>
 </ul> 
</div> 
</body> 
</html>


Quote:
Originally Posted by Mike1002
Hi.

Im in the processing of designing a site based on the Liquid Gem Responsive HTML Template.

Ive 6 items in my menu, and no matter which bit im changing i cant seem to make the menu fit on 1 line.

I'd like all the nav items to be on one line when viewed on an average desktop

(site here http:// modernhuman.mmedesigns.co.uk/3/ )

There seems to be some sort of padding around each link item - as when i change the width of the nav area its just spacing out the first row.

Any help would be great.

Thanks,
Mike.

Reply With Quote
  #5  
Old December 4th, 2012, 01:05 PM
Mike1002 Mike1002 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 Mike1002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 52 sec
Reputation Power: 0
thankyou both

maths fail

Reply With Quote
  #6  
Old December 6th, 2012, 05:53 AM
atta_akbar atta_akbar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 9 atta_akbar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 41 m 28 sec
Reputation Power: 0
css nav_item

math fails ???but where is the math?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS nav issues

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