Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2006, 10:31 AM
Registered User
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nloding Send a message via Yahoo to nloding
Default Center two column layout

Here's the problem I'm running into now:

I have a wrapper div that has left and right margins set to "auto", and that is all good. Inside this, I have my header, body, and whatnot, and all that is more-or-less good. Below that, I have two text boxes for specials being advertised on the site, and they are side by side.

I place "float: right" and "float: left" in the respective divs, and set the width to 300px. I can center the elements inside the divs no problem. But I want the divs centered side-by-side inside the wrapper div. The wrapper div is 700px.

I've tried using margin-left and margin-right, but depending what I do, either IE or Firefox will mess it up, and place one div below the other.

Any suggestions on what to try next? I'll post the code tonight.

 
Old June 21st, 2006, 12:11 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Source code? Link to page? Can't say for sure without seeing it.

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
IE 6 & 7 issues in two column layout Cyber Shiva BOOK: CSS Instant Results 0 July 7th, 2008 03:47 AM
3 column layout acevision7 BOOK: Professional CSS: Cascading Style Sheets for Web Design 0 February 24th, 2008 11:13 PM
2-column layout kennethjaysone CSS Cascading Style Sheets 2 January 12th, 2008 06:44 AM
three-column layout help DSteven CSS Cascading Style Sheets 8 December 28th, 2004 10:02 AM
align Center melvik C# 1 September 7th, 2003 04:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.