I'm having an issue with a menu un-ordered list. Whereby the list items are over running the <ul>
and <div>
boundaries and only starting the next line once it has reach the edge of the screen.
Heres the website: http://finalonline.co.uk/mypics/gallery/categories/
Do display: block; always... Never do
display: inline;
ordisplay: inline-block;
To fix the Unordered List from pouring out of the DIV, try going into the CSS and apply this:
Make them
display: block
, notinline
.To fix the Unordered List from pouring out of the DIV, I would suggest going into the CSS and adding a min-width.
so, for example if your parent has a width:600px give the , within that div, a class and set a min-width:600px and this will keep the
You can use
float: left;
on theli
s instead ofdisplay: inline;
.Just remember to also use
overflow: hidden;
on the parent element (theul
).Another option would be to use:
display: inline-block
, but I'm not 100% sure about the browser support.