Link to home
Start Free TrialLog in
Avatar of jagguy
jagguyFlag for Australia

asked on

flex grid

in html/css i want to create a 2 by 2 grid of flexable size not known until runtime.
I have some pictures of varying size which i want placed nex to each other wihout much of a gap. the picture description is on col2 and pics are in col1. i want the descrption to apear next to the pic.

how do i create  this so i dont need to put a fixed width

     
 <div class="One"> </div>
 <div class="two"> </div>
 <div class="three"> </div>
 <div class="four"> </div>
ASKER CERTIFIED SOLUTION
Avatar of Neuropsykopat
Neuropsykopat
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jagguy

ASKER

nope didnt change anything.

Avatar of jagguy

ASKER

i float right and it works with a wrapper
Avatar of jagguy

ASKER

needed tinkering with my last post
1 left and 1 right ?   [  ]  <--   --> [  ]

and 2 lefts don't work in your case ?  [ ] [ ] <--

don't forget to add clear:both style at the next div