List items run outside of list and div area

crmepham picture crmepham · Jan 4, 2012 · Viewed 33.8k times · Source

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/

Answer

Aaron Brewer picture Aaron Brewer · Jan 4, 2012

Do display: block; always... Never do display: inline; or display: inline-block;

To fix the Unordered List from pouring out of the DIV, try going into the CSS and apply this:

ul {
list-style-position: inside;
}