Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 08-09-2006, 03:19 AM
theChronic's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 12-19-05
Location: Berkeley, California
Posts: 393
iTrader: 0 / 0%
Two Columns with Div - FF different from IE

hey whats up
Ive been trying to get these two columns to look nice using div tags and I'm having a little trouble because it displays perfectly in firefox but wrong in internet explorer *grumbles* - too bad my niche doesn't all use FF..

Code:
<div style="float: left; width:60%"> <h2> some title</h2> <p>Some information 1 </div> <br /> <div style="float: left; width:100%"> <h2>Some title</h2> <p> lots of information </div> <div style="margin-left:60%; width:40%;"> <h2> Some title to go on right</h2> <p> Some info to go on right</p> </div>
The stuff that is "to go on right" is supposed to go on the right of "Some information 1" so these would be column like with the "lots of information" part under both of them (because it takes up all 100% of the screen - whereas the top two parts can fit side by side).

Any help or pointers would be great - this code was made by looking at a few examples and doing lots of experimenting/copying.

Thanks a lot
John
__________________
Looking to meet other talented web devs.

Feel free to PM me if integrating high level & performance statistics in a web environment interests you!
 
Reply With Quote
  #2 (permalink)  
Old 08-09-2006, 05:41 AM
chicgeek's Avatar
Contributing Member
 
Join Date: 08-19-04
Location: Canadian on the left coast
Posts: 14,199
iTrader: 0 / 0%
Is the code active on a site? If so, post a linky.

I'm not sure what content you're using, but I don't see why you include your "Some title" etc content in longer divs. But then again, as I alluded to, I can't exactly see what you're trying to do with this...
__________________
laura / chicgeek
soprano & web designer
@chicgeek on Twitter
laurakishimoto.ca
 
Reply With Quote
  #3 (permalink)  
Old 08-10-2006, 07:30 AM
Mrblogs's Avatar
Contributing Member
 
Join Date: 03-29-06
Posts: 395
iTrader: 0 / 0%
move the bottom div up above the middle div.

The top divs should be first
the 100% one should be after.

Also keep in mind that IE does not include margin in its 100% calculations, and so it may be better setting them to margin: 0px; or padding: 0px (i can't remember which one it is), and then doing padding inside the divs themselves.
__________________
Website Designers in Wolverhampton

Pub Index
PubIndex.co.uk - A comprehensive Pub Guide for the United Kingdom
 
Reply With Quote
  #4 (permalink)  
Old 08-14-2006, 01:36 AM
theChronic's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 12-19-05
Location: Berkeley, California
Posts: 393
iTrader: 0 / 0%
Quote:
Also keep in mind that IE does not include margin in its 100% calculations, and so it may be better setting them to margin: 0px; or padding: 0px (i can't remember which one it is), and then doing padding inside the divs themselves.
Ahh i think that's what i forgot. thnx, will check that out.
__________________
Looking to meet other talented web devs.

Feel free to PM me if integrating high level & performance statistics in a web environment interests you!
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Big table with first columns fixed gcorro Coding Forum 2 11-07-2007 07:02 AM
Number of columns Louis Blogging Forum 6 06-13-2006 06:56 AM
Left or Right Columns? Nick Web Design Lobby 7 04-28-2006 01:29 PM
Columns stick in Safari rck Web Design Lobby 2 05-25-2005 07:25 AM
Columns kwvarga Graphic Design Forum 4 01-13-2004 05:44 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:33 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.