css - how to make my unsorted list fit into the div? -


you can see problem here:

enter image description here

here can see css-file:

` /logo's/

#logo {      width: 15%;      float: left;     margin: auto;  } #logo li{     list-style-type: none; }` 

on picture can see happens unsorted list.

and html part: `

                    <ul id="logo">                         <li><img src="ar.png" alt="alfa romeo logo" /></li>                         <li><img src="lg.png" alt="lamborghini logo" /></li>                         <li><img src="ferrari.png" alt="ferrari logo" /></li>                         <li><img src="ms.png" alt="maserati logo" /></li>                     </ul>                      <div id="tekst">                          <p>lorem ipsum dolor sit amet, consectetur adipiscing elit. ut eu mollis velit. vestibulum porttitor eros @ velit placerat volutpat. fusce ac erat arcu, vel imperdiet purus. curabitur tellus nisi, tristique malesuada porta sit amet, scelerisque ut urna. sed ut sapien quis est fringilla iaculis. curabitur ac lectus ut leo lacinia dignissim. praesent eu felis ante. phasellus @ fringilla odio.</p>                      </div>` 

here real website if can view it:website

edit: want ul fit tanned div, dont want put fixed height.

because have 2 div's floated within main container div id="inhoud" need either clear floats or set container overflow:auto

div#inhoud {     margin: 10px;     overflow:auto; } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -