User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,779 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser: Internet Marketing Services
Views: 1179 | Replies: 2
Reply
Join Date: Oct 2007
Posts: 1
Reputation: Renierb78 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Renierb78 Renierb78 is offline Offline
Newbie Poster

Div Css Layout

  #1  
Oct 5th, 2007
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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 5
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Div Css Layout

  #2  
Oct 6th, 2007
Where's the code?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Div Css Layout

  #3  
Oct 7th, 2007
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.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Site Layout and Usability Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Site Layout and Usability Forum

All times are GMT -4. The time now is 4:23 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC