Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

CSS positioning boxes using ul li div

CSS positioning boxes using ul li div

Problem

JSFIDDLE EXAMPLE BELOW

I want to make the following CSS layout and currently im using UL to float the LI left. The problem is the 2 rectangles wont stay on either side. And not sure how to position the bottom 2 rectangles.

I tried wrapped a div in the middle of the UL LI but thats not proper markup. Please can you help? Possibly a JSFIDDLE example if you could? Thanks

EDIT: Here you go, jsfiddle.net/fpqxy/1 boxes 2 and 3 are in position but 4 and 5 need to be below them. Then box 6 needs to move accross with 7 and 8 remaining at the bottom. –

Problem courtesy of: SOLDIER-OF-FORTUNE

Solution

see the below fiddle and demo

Fiddle: http://jsfiddle.net/fpqxy/5

Demo: http://jsfiddle.net/fpqxy/5/embedded/result/

Solution courtesy of: w3uiguru

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

CSS positioning boxes using ul li div

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×