473,472 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why is IE ignoring my height decleration?

Ive set a block 10 pixels high to display a background image on my
site, Fifrefox is OK with it, yet IE seems to be ignoring it totally?

You can see it here, Ive added a red border round the offending element
to illustrate my point. Compare IE's rendition with Firefox

This is the CSS rule Ive set:

#bodyBackground {
background-image: url(../images/body_top.png);
background-repeat: no-repeat;
height: 10px;
border: 1px solid #FF0000;
}

This is the page

http://www.ainewmedia.co.uk/index.asp

Oct 2 '06 #1
2 1254
Els
jo***********@yahoo.co.uk wrote:
Ive set a block 10 pixels high to display a background image on my
site, Fifrefox is OK with it, yet IE seems to be ignoring it totally?
IE is stretching the element's height to encompass the content. Now I
know there is no content in it, but IE still gives it the minimum
height required to contain a character. To avoid that you could set
the font-size and the line-height to a small enough size for that
element, or give it overflow:hidden;.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Oct 2 '06 #2
Perfect, thanks mate.

Els wrote:
jo***********@yahoo.co.uk wrote:
Ive set a block 10 pixels high to display a background image on my
site, Fifrefox is OK with it, yet IE seems to be ignoring it totally?

IE is stretching the element's height to encompass the content. Now I
know there is no content in it, but IE still gives it the minimum
height required to contain a character. To avoid that you could set
the font-size and the line-height to a small enough size for that
element, or give it overflow:hidden;.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Oct 2 '06 #3

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

Similar topics

1
by: Chris Pudney | last post by:
G'day, I am using CSS to construct bar charts from nested DIVs. In general this works fine. However, in certain circumstances I need to display multiple charts inline. To get consistent results...
10
by: lac | last post by:
Hello all, I am trying to make horizontal bars of different lengths. I tought either SPAN or DIV would work but it only works for IE. I have a small example at: http://sedivy.com/test.htm Let...
17
by: Tapeesh | last post by:
I would like to know what is the expected behaviour of C compilers when an extern decleration is intialized. When the following code is compiled using gcc //File extern.c int arr ; int a ;
5
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
0
by: Husam | last post by:
Hi EveryBody: I got this decleration for function from URLMON.dll as follows: <DllImport("urlmon.dll", ExactSpelling:=True, CharSet:=CharSet.Unicode)> _ Friend Shared Function...
3
by: kasiyil | last post by:
Hello, I have a compilation problem about namespaces: I have a namespace X in which I declera a type definition: In X.h file i write: namespace X { typedef unsigned int WindowHandle_t; }
10
by: sam_cit | last post by:
Hi Everyone, I had a doubt regarding extern decleration, i tried this is one source file, extern int sample; extern int sample; int main() {
2
by: GloStix | last post by:
For some reason, FF likes to put a black underline on all my buttons. No matter what I do, it has the line I've tried displaying as block and cursor, anything.. Also I've been trying to get it so...
8
by: sheridan | last post by:
Hi. I'm hoping someone can shed some light on this bizarre problem that I have come accross. I have spent all evening trying to fix it with no luck! I have a frameless Windows.Forms form with...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.