OK, if anyone could help me with this I’d be much appreciative. If you copy and paste the following and open up in IE or Firefox
<div style='border: solid 1px navy; float: left;'> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul> </div> <div style='background-color: blue;'> <p>Some Text</p> <p>Another paragraph</p> </div>
Why does the second div which has a blue background expand to be behind the first div that contains the list of items? How do I get it to really float next to the first div?
If you want the blue box to be beside the list, you need to float it as well: