473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

IE vs Firefox : Floats, Margins, Clears etc

Hi,

Before I get to far, I've been making some modifications, but I need to
make sure Im on the right track.

Here's what I have so far:

http://celebrity.blargle.co.uk/test2.html

Well before the main changes.

Displays great in Firefox, but IE completely distorts it.

The "clear"ing div, destroys the margin on the leftborder div, which is
needed to expand the divs and therefore the borders beyond the scope of
the news column on the right to make a pretty box.

So, at this stage, Im figuring, if we remove the margin on the
left-border, we need to change the left border to add an extra 175
pixels to the left of it to ensure it aligns correctly, then set a
margin-left of 175px on the centrecontent.

Seems to work. But Im not sure if it's the best way?

Also Im sure there's a better way of doing the DIV's... I keep thinking
in terms of minimal slices of graphics rather than minimal html, so,
when building a horizontal border, I could quite easily have a left
corner and then a long long border of 2000 pixels, then have a separate
right corner...

So instead of

A B C (where B can expand)

Maybe I should do

ABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBB C
where B's can shrink?

God I hate IE.

The only other two problems, if you look at:

http://celebrity.blargle.co.uk - the Menu DIV seems to be causing some
kind of a break character and nudging out the "headercontent" div
slightly? I figure this is something to do with line breaks, but unable
to find the key to make this work.

Also I had a problem, the News links on the right, although the a tags
were set to display:block, the hover event wasn't triggered until I was
over the text. Just waving the mouse over white space had no effect.

But once the hover was triggered, I could wave the mouse over some of
the white space, and hover was still triggered until I moved outside of
the block.

Secondly, I note in IE I cannot do a h1:hover etc. Any workarounds?

Thanks
Simon
Mar 13 '07 #1
0 1729

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Drew Martin | last post by:
The page at the below URL renders perfectly in IE6, but is failing horribly in Firefox (0.7, 0.8). I can't figure out why and was hoping someone could take a quick look at it. Most of the layout...
18
by: Niels | last post by:
Hi group, I have some problems with clearing floated divs. My usual method works fine in Konqueror, but not in Firefox. Here's an example: <html><body> <div id='left' style='float:left;...
6
by: Drue | last post by:
Example page: http://www.splatteredink.net/test/ It is a two column layout with header. The header and two columns are in a container div. The left column is floated left. The text of the left...
9
by: Daz | last post by:
Hello hello! I'm trying to finish off putting my design into HTML and I've come across a problem that I can't get my head around. I've got divs floating in two columns, but I'm having problems...
3
by: ffrugone | last post by:
I am creating a blog and I have a problem which seems fairly common: Within the content of the posts I sometimes have floated images. The comments bar that follows each post will not clear the...
11
by: listerofsmeg01 | last post by:
Argh! I'm going nuts trying to get a constant margin after a floated div that works cross browser. This works in IE but not Firefox: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"...
2
by: ottawamom | last post by:
Hi there, simply.amandadevries.com/index.html The page validates fine. Yes I know I'm using a table where I shouldn't but I can't otherwise figure out how to get my little image for the list...
3
by: alice | last post by:
Can someone tell me how I can make it so that on this page http://s195679515.onlinehome.us/essence/index.html in Firefox, the space after the main content and the bottom boxes is only 5px? As it...
6
by: Hendrik Maryns | last post by:
Hi, There is a little problem with the header on the page I recently converted from frames to proper HTML+CSS. The top part with the navigation used to be the top frame but is now included via...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.