Hi,
I'm trying to build a theme using the STARTERKIT and ran into some problems:
I have a 400x140px logo.png which I want to include. It should vertically fill the header.
If I just upload the file as the logo it won't fill the header vertically, see zen-logo-400x140-firefox.png.
If I try to fix it by specifying
#header
{
height: 140px;
}
the layout in Firefox is broken, see zen-header-height-140-firefox.png.
(I'm actually using Iceweasel Gecko/2008092814 Iceweasel/3.0.3 (Debian-3.0.3-3), the Firefox version in Debian.)
The layout in Firefox on the other hand will not break.
Is it me, changing the wrong parameter, is it Firefox or Zen casuing the issue?
Kind regards,
Felix
| Comment | File | Size | Author |
|---|---|---|---|
| zen-logo-400x140-firefox.png | 96.45 KB | fexpop | |
| zen-header-height-140-firefox.png | 82 KB | fexpop |
Comments
Comment #1
fexpop commentedSorry, "The layout in Firefox on the other hand will not break." should read "The layout in Konqueror(!) on the other hand will not break.
-- Felix
Comment #2
kmontyFirefox adds a margin to the bottom of images by default. I used to remember why, but I forgot already.
You can solve it like this:
Or
Comment #3
dman commentedThe reason is XHTML strict places images in 'text-flow' - which places image bottom at the baseline of the surrounding text. Baseline of text allows for line-height and space for character trailers. Which creates a small margin underneath images that are supposed to be flush-bottom.
Vertical-align is a correct fix.
Comment #4
akalata commentedMarking this old issue as "won't fix," because it appears to be an isolated support request. fexpop, if this is still an issue, please reopen and update us on your progress.
Comment #5
LiloLilo commentedI can confirm this is still an issue, not only on Firefox but also in Explorer and Chrome. vertical-align: bottom; worked for me.