spacing in firefox but not in ie

T

Tarscher

Hi all,

In http://topvolleyantwerpen.be/p I have spacing under the Nieuws
Items. It appears that a spacing is creating under div.content . I
tried to remove padding and marging but that didn't solve it.

The page renders as foreseen in IE

Maybee someone knows a solution?

Thanks
Stijn
 
C

Chris F.A. Johnson

Hi all,

In http://topvolleyantwerpen.be/p I have spacing under the Nieuws
Items. It appears that a spacing is creating under div.content . I
tried to remove padding and marging but that didn't solve it.

Why are you using a transitional doctype? And why XHTML?

First, fix the (minor) mark-up errors.
The page renders as foreseen in IE

The biggest problem you have is that you are trying to design a
web page as if it were a piece of paper. It's not.

This is how your page looks in my browser:
<http://cfaj.freeshell.org/testing/tarscher.jpg>
 
B

BootNic

On Mon, 30 Jun 2008 09:50:52 -0700 (PDT)
Hi all,

In http://topvolleyantwerpen.be/p I have spacing under the Nieuws
Items. It appears that a spacing is creating under div.content . I
tried to remove padding and marging but that didn't solve it.

The page renders as foreseen in IE

It's not a padding or margin issue. It's the floats.

Search for IE haslayout to discover why IE may be rendering it the way
you desire it.

Your example could easily be converted to strict and error free in
either html or xhtml.

For most browsers adding div.content { overflow:hidden; } may resolve
the issue.

IE 6 or less would require additional rules, not only for the content
but also for the transparent images.


--

BootNic Mon Jun 30, 2008 03:53 pm
Thirty-five is when you finally get your head together and your body
starts falling apart.
*Caryn Leschen*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkhpObcACgkQylMUzZO6jeJybgCfU8nD3pfIL38+sE7CKpIa0aFA
HnQAn1butmV+sy1kZt1bBMEwaRNIR+Mo
=KxYP
-----END PGP SIGNATURE-----
 
T

Tarscher

On Mon, 30 Jun 2008 09:50:52 -0700 (PDT)




It's not a padding or margin issue. It's the floats.

Search for IE haslayout to discover why IE may be rendering it the way
you desire it.

Your example could easily be converted to strict and error free in
either html or xhtml.

For most browsers adding div.content { overflow:hidden; } may resolve
the issue.

IE 6 or less would require additional rules, not only for the content
but also for the transparent images.

--

BootNic                                       Mon Jun 30, 2008 03:53 pm
  Thirty-five is when you finally get your head together and your body
  starts falling apart.
  *Caryn Leschen*

 signature.asc
1KDownloaden

many thanks for the reply.

The overflow: hidden indeed solved ( http://topvolleyantwerpen.be/p )
the problem for FF. in IE 6 I still no background repeating patern
though (as you predicted). Someonehas an idea why the patern isn't
visible?

in IE6 also the red botom part of the logo is put on the right side
instead of the left side.
div.content div.logo_left_top
{
position: absolute;
left: 0px;
top: 0px;
}

I can solve this by entering ie 6 specific code ( left: -950px; ) but
maybe there is another solution?

Thanks,
Stijn
 
B

BootNic

On Tue, 1 Jul 2008 08:24:25 -0700 (PDT)
On Mon, 30 Jun 2008 09:50:52 -0700 (PDT)
Inhttp://topvolleyantwerpen.be/pI have spacing under the Nieuws
Items. It appears that a spacing is creating under div.content . I
tried to remove padding and marging but that didn't solve it.
[snip]
IE 6 or less would require additional rules, not only for the
content but also for the transparent images.
[snip] Please remove signatures when replying.
The overflow: hidden indeed solved ( http://topvolleyantwerpen.be/p )
the problem for FF. in IE 6 I still no background repeating patern
though (as you predicted). Someonehas an idea why the patern isn't
visible?

in IE6 also the red botom part of the logo is put on the right side
instead of the left side.
div.content div.logo_left_top
{
position: absolute;
left: 0px;
top: 0px;
}

I can solve this by entering ie 6 specific code ( left: -950px; )
but maybe there is another solution?

I suggest you use a conditional comment to target IE 6. This can be
done with either a style element or a link element if you desire an
external style sheet.

The basic fix for IE 6 is to trigger something called haslayout, feel
free to google up on it. Do do this in this example just add zoom:1 to
the div.content in a conditional comment similar to the following
example.

I also suggest you add a vertical-align rule to the .menu_item rule. In
your source it may not be required, however that depends on the
white space in the source. If you were to run you page through tidy for
example, you may end up with a space under your logo that would be
difficult to trace unless you know what you are looking for.

<!--[if IE 6]>
<style type="text/css">
div.content {
zoom:1;
}
..menu_item img {
vertical-align:middle;
}
</style>
<![endif]-->

You sill have not fixed the errors in the validation, all you have to
do is move the script elements that you have between the head and the
body, just move it to the head I think would be fine.

After that you can switch to a strict document type, just replace:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

with

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/xhtml1-strict.dtd">

and you will have a strict document.

With that being said with just a little more effort you could have an
html 4.01 strict document.

You will still need to work on your style sheets as far as the
font-size is concerned. You really have no control of the font-size,
all you can do is suggest a font-size, but you can make it a bit more
usable.

Any element that you have text in, if you set a height to it, it should
be in em rather then px. em units will adjust with the text size, px
will not.

--

BootNic Tue Jul 1, 2008 03:00 pm
You can turn painful situations around through laughter. If you can
find humor in anything - even poverty - you can survive it.
*Bill Cosby*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkhqfs8ACgkQylMUzZO6jeJXAACgthGvoX8fdzaI912d7gqR8aLk
avUAni44DvAjwfNQVW/DRgEPsRgAkjTv
=NgD4
-----END PGP SIGNATURE-----
 
T

Tarscher

On Tue, 1 Jul 2008 08:24:25 -0700 (PDT)
@c58g2000hsc.googlegroups.com>
Inhttp://topvolleyantwerpen.be/pIhave spacing under the Nieuws
Items. It appears that a spacing is creating under div.content . I
tried to remove padding and marging but that didn't solve it. [snip]
IE 6 or less would require additional rules, not only for the
content but also for the transparent images.

[snip] Please remove signatures when replying.


The overflow: hidden indeed solved (http://topvolleyantwerpen.be/p)
the problem for FF. in IE 6 I still no background repeating patern
though (as you predicted). Someonehas an idea why the patern isn't
visible?
in IE6 also the red botom part of the logo is put on the right side
instead of the left side.
div.content div.logo_left_top
{
    position: absolute;
    left: 0px;
    top: 0px;
}
I can solve this by entering ie 6 specific code ( left: -950px; )
but maybe there is another solution?

I suggest you use a conditional comment to target IE 6. This can be
done with either a style element or a link element if you desire an
external style sheet.

The basic fix for IE 6 is to trigger something called haslayout, feel
free to google up on it. Do do this in this example just add zoom:1 to
the div.content in a conditional comment similar to the following
example.

I also suggest you add a vertical-align rule to the .menu_item rule. In
your source it may not be required, however that depends on the
white space in the source. If you were to run you page through tidy for
example, you may end up with a space under your logo that would be
difficult to trace unless you know what you are looking for.

<!--[if IE 6]>
<style type="text/css">
div.content {
zoom:1;}

.menu_item img {
vertical-align:middle;}

</style>
<![endif]-->

You sill have not fixed the errors in the validation, all you have to
do is move the script elements that you have between the head and the
body, just move it to the head I think would be fine.

After that you can switch to a strict document type, just replace:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

with

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/xhtml1-strict.dtd">

and you will have a strict document.

With that being said with just a little more effort you could have an
html 4.01 strict document.

You will still need to work on your style sheets as far as the
font-size is concerned. You really have no control of the font-size,
all you can do is suggest a font-size, but you can make it a bit more
usable.

Any element that you have text in, if you set a height to it, it should
be in em rather then px. em units will adjust with the text size, px
will not.

--

BootNic                                        Tue Jul 1, 2008 03:00 pm
  You can turn painful situations around through laughter. If you can
  find humor in anything - even poverty - you can survive it.
  *Bill Cosby*

 signature.asc
1KDownloaden

Thanks for the help. The site seems to render properly in IE 6 now.

Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top