Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Divs won't line up cross-browser (AUGH!)
Old 11-20-2007, 09:51 PM Divs won't line up cross-browser (AUGH!)
Experienced Talker

Posts: 42
Trades: 0
My website contains valid XHTML 1.0 Transitional and valid CSS. It looks great in IE7, but in Firefox and IE6, the center DIV sits about 20 pixels too low. Could someone please have a look at my div.css and tell me what I'm doing wrong.

I've set up my three-column layout such that my content is higher on the page than my navigation, using negative margins, and this may be causing me grief.

www.friendly-skies.com

Ken
Ken Rogers is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-21-2007, 03:35 AM Re: Divs won't line up cross-browser (AUGH!)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
using negative margins, and this may be causing me grief.
Yes it will
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-23-2007, 10:49 AM Re: Divs won't line up cross-browser (AUGH!)
pdfmania's Avatar
Junior Talker

Posts: 4
Name: Robinson John
Trades: 0
css crossbrowser is something misterious for me.. my template worked well but if i used it with php, it changed.. either side bar or content sometimes not inline.. need refresh once or twice to fix... now i always use 2 cols layout
content : margin-right:200
sidebar : width 200;float right
to make it.. i use .padding class for padding in both div

for three cols layout i use
menu : width:200;float:left

order in php page
<div id=menu></div>
<div id=sidebar></div
<div id=content></div

some time not inline.. need some fixes
__________________

Please login or register to view this content. Registration is FREE

Last edited by pdfmania; 11-23-2007 at 10:51 AM..
pdfmania is offline
Reply With Quote
View Public Profile Visit pdfmania's homepage!
 
Old 11-23-2007, 11:56 AM Re: Divs won't line up cross-browser (AUGH!)
Novice Talker

Posts: 9
Trades: 0
Well I can tell its the DIV spacing, but something that is NOT friendly with firefox;
<iframe src="http://rcm-ca.amazon.ca/e/cm?t=fries...1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

Ok, this is your main problem:

The content in the center column has a font size, which is correct in Internet Explorer, and therefore the size of the DIV/TABLE for the center column has been increased.

In firefox, the content has a smaller font size, and therefore it uses less space. Your iframe and images in the left column therefore overlap the footer, as this column does not "push" the content down (increasing the table/div without a height attribute).

To show what I mean by "push", see my link (hover over a link in the menu and the page goes smaller - doesnt work on firefox it is a deveopment):
http://cjnet.info/pages/projects/index.html

Last edited by cj-real; 11-23-2007 at 12:00 PM..
cj-real is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Divs won't line up cross-browser (AUGH!)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17990 seconds with 12 queries