I am using divs to relative position my blocks of code. I got 3 colums - left, center and right,
i am floating the first left, the third column right, then want to center the 'content' div between the left and right divs, but it dont center align it in all browsers. How can I do this so there is an equal amount of space left and right of the 'content' div?

Recommended Answers

All 2 Replies

Member Avatar for GreenDay2001

Where's the code?

Float all of them left, and set their widths to 33.3%.

Make sure the divs making the three columns have margins and padding set to 0, borders set to none.

Remember that if the browser window is too small, the format will fall apart.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.