![]() |
|
|||||||
| Notices |
| CSS Forum Cascading Style Sheets (CSS) and XHTML Forum |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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! |
|
|
|
||||
|
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;
}
__________________
Colour Printing and Integrated Cards || Graphic Design, Web Design UK || Logo Designer - Logo Design || Graphic Design Blog || Logo Design Logo Designer || Integrated Labels & Cards || Logo Design || Graphic Design Links || Web Design Rotherham UK || Logo Design UK || Web Design UK
|
|
||||
|
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..
__________________
Tommy Logic ™ Web Design :: Valid XHTML & CSS :: SEO :: CMS :: eCommerce Web Design Tutorials :: Computer Tutorials |
|
||||
|
__________________
Colour Printing and Integrated Cards || Graphic Design, Web Design UK || Logo Designer - Logo Design || Graphic Design Blog || Logo Design Logo Designer || Integrated Labels & Cards || Logo Design || Graphic Design Links || Web Design Rotherham UK || Logo Design UK || Web Design UK
|
|
||||
|
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
__________________
Tommy Logic ™ Web Design :: Valid XHTML & CSS :: SEO :: CMS :: eCommerce Web Design Tutorials :: Computer Tutorials |
|
||||
|
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 |
|
||||
|
or Flash...
Really though, now that I see what it is you are trying to do.. straight forward CSS is all you need.
__________________
Tommy Logic ™ Web Design :: Valid XHTML & CSS :: SEO :: CMS :: eCommerce Web Design Tutorials :: Computer Tutorials |
|
||||
|
Quote:
Quote:
|
![]() |
|
|
| Thread Tools | |
| Display Modes | |
|
|
| All times are GMT. The time now is 02:14 PM. |