html - Unordered list won't align properly inside a div -


i'm making navbar out of images.

the images inside list item li inside unordered list ul inside div.

the problem i'm having when make unordered list displaying inline, doesn't align left of div should, starts 40 pixels in. tried setting position:absolute;left:0; on ul doesn't make difference.

position:absolute; supposed make align relative parent element, it's not doing that.

here jsfiddle displaying problem.

(the red block div, it's red show side of div can see how far off ul is)

is there i'm missing? why image start 40 pixels right of should?

css

#navbar ul{     position:absolute;     left:0px;     margin:0 0 0 0;     padding: 0 0 0 0; } 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -