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 March 11th, 2008, 04:26 PM
Authorized User
 
Join Date: Jan 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default float not working

the following code looks different in Firefox than in IE (what's new?). however this time, it looks the way i want it in IE! i can't figure out how to get my centered red box to wrap completely around my 2 green column boxes. any ideas?

Code:
<div style="margin:0 auto;width:300px;border:1px red solid">
   <div style="width:100px;float:left;margin:10px;border:1px green solid">column 1 text goes right here</div>
   <div style="width:100px;float:right;margin:10px;border:1px green solid">column 2 text goes right here</div>
</div>
cheers,
steve
 
Old March 11th, 2008, 05:00 PM
Authorized User
 
Join Date: Jan 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nevermind - i solved it by adding "overflow: hidden;" to the containing <div>

cheers,
steve





Similar Threads
Thread Thread Starter Forum Replies Last Post
Float precision nulogix C++ Programming 1 November 10th, 2005 09:53 PM
Covert CHAR to Float kuku SQL Server 2000 3 July 24th, 2005 06:02 PM
CSS Float error socoolbrewster CSS Cascading Style Sheets 3 July 18th, 2005 09:25 AM
convert a column to float must Access 0 September 12th, 2003 07:35 AM
How to keep two digit after float number? Edward King Javascript 1 July 30th, 2003 01:12 AM





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