Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 21st, 2006, 10:31 AM
Registered User
Join Date: May 2006
Location: Grandville, Michigan, USA.
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.

Reply With Quote
  #2 (permalink)  
Old June 21st, 2006, 12:11 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

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


Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 04:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.