2 replies [Last post]
jduffell
jduffell's picture
Offline
Regular
Preston, Uk
Last seen: 11 years 41 weeks ago
Preston, Uk
Timezone: GMT+1
Joined: 2007-06-15
Posts: 43
Points: 21

Hi i've created a wrapper which is positioned in the center of the page which has a 600px width, however within this i would like 5 columns each aligned so that their in a row, would this be possible with css ?

Any help would be much appreciated thanks Smile

deronsizemore
deronsizemore's picture
Offline
Enthusiast
Last seen: 13 years 13 weeks ago
Timezone: GMT-5
Joined: 2007-01-18
Posts: 113
Points: 14

Hi,

Hi,

Yes, this is possible with floats. You could do something like this:

#wrapper div {
float: left;
width: 120px;
}

div id="wrapper"
  div
   ...content
  /div

  div
   ...content
  /div

  div
   ...content
  /div

  div
   ...content
  /div

  div
   ...content
  /div
/div

Sorry, I had to remove the "<" and ">" signs. They kept making the code disapear

jduffell
jduffell's picture
Offline
Regular
Preston, Uk
Last seen: 11 years 41 weeks ago
Preston, Uk
Timezone: GMT+1
Joined: 2007-06-15
Posts: 43
Points: 21

Thanks

Cheers i've modified the code slightly to suit my needs and it works a treat cheers.