Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2007, 05:45 PM
dannynosleeves's Avatar
currently on the run
 
Join Date: Jun 2007
Location: NC
Gender: Male
Posts: 445
Default <li> overlapping?

Im working on making a nav bar with an <ul> but all my <li> seem to be overlapping.

test page

*there is a purple box and a white box. The white box is the forst <li>.

Any ideas?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote

  #2 (permalink)  
Old 10-06-2007, 06:58 PM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,788
Default

Could it be

Code:
#nav li {
	list-style:none;
	display:inline;
	float: left;
	}
	
#nav .about a{
	background-color:#FFF;
	height:80px;
	width:100px;
	display:block;
	margin-left:10px;
	z-index:9;
	}
Display:inline on .about command as first
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 10-06-2007, 07:45 PM
dannynosleeves's Avatar
currently on the run
 
Join Date: Jun 2007
Location: NC
Gender: Male
Posts: 445
Default

Thanks for the help. What exactly should that do? I got what I wanted by adjusting the left margins. Nots ure if this is a good way to do it though.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 11-06-2007, 03:02 AM
tommylogic's Avatar
f*ck yeah it validates!!!
 
Join Date: Apr 2007
Location: Virtually Everywhere
Gender: Male
Posts: 6,314
Default

well.. the way you did it is kind of a hack..
not a big fan of it. I like toon's aproach a bit more. Approach the whole straight line as a single item.. and stagger it left to right.
Use some javascript if you have to..
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 11-06-2007, 05:21 AM
dannynosleeves's Avatar
currently on the run
 
Join Date: Jun 2007
Location: NC
Gender: Male
Posts: 445
Default

Quote:
Originally Posted by tommylogic View Post
well.. the way you did it is kind of a hack..
not a big fan of it. I like toon's aproach a bit more. Approach the whole straight line as a single item.. and stagger it left to right.
Use some javascript if you have to..
Im learning CSS as I go, so Im sorry if I dont follow you.

I was trying to approach the nav div as a straight line. But all the boxes <li> ended up in the same place on the left side of the div.

I dont know any java. How would you suggest staggering them left to right?

Hope the anwser isnt too much trouble.

Thanks for the pointers.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 11-06-2007, 06:42 AM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 19,788
Default

This might help

http://www.quirksmode.org/css/display.html#block
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 11-06-2007, 12:05 PM
tommylogic's Avatar
f*ck yeah it validates!!!
 
Join Date: Apr 2007
Location: Virtually Everywhere
Gender: Male
Posts: 6,314
Default

yeah.. what he said..

and I always do my nav with a separate nav<div>. then let it line itself up and positiont he entire nav where I want it
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 11-06-2007, 01:10 PM
Mack's Avatar
I own the flash design thread.
 
Join Date: May 2007
Location: RI, USA
Gender: Male
Posts: 1,429
Default

no javascript!

You should be able to achieve what your looking for from XHMTL and CSS alone.
__________________
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it."
Mike McKenzie - Online Portfolio
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 11-06-2007, 01:47 PM
tommylogic's Avatar
f*ck yeah it validates!!!
 
Join Date: Apr 2007
Location: Virtually Everywhere
Gender: Male
Posts: 6,314
Default

Quote:
Originally Posted by Mack View Post
no javascript! .....
or Flash...

Really though, now that I see what it is you are trying to do.. straight forward CSS is all you need.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #10 (permalink)  
Old 12-06-2007, 04:13 AM
dannynosleeves's Avatar
currently on the run
 
Join Date: Jun 2007
Location: NC
Gender: Male
Posts: 445
Default

Quote:
Originally Posted by tommylogic View Post
well.. the way you did it is kind of a hack..
not a big fan of it. I like toon's aproach a bit more. Approach the whole straight line as a single item.. and stagger it left to right.
Use some javascript if you have to..
Quote:
Originally Posted by Toon View Post
That helps alot. Im going to work on it tomorrow. I'll keep you guys posted. Thanks for all the help. Its awesome people still do that.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 02:14 PM.