[BNM] Background image on html element
Matt Keogh
Matt at cst-group.com
Tue Apr 3 13:05:18 BST 2007
Sorry, I should have made myself more clear.
I am using CSS (not sure if there is any other way of adding a background
image) and I'm trying to not use the body element as it is being used for
something else.
I can achieve what I want to do but have to add an extra div. Although I
don't mind (too much) adding the div it would be great if there was some
kind of "Magic Bullet" I could feed to IE 5 only with conditional comments
to get it to work. Just hoping someone else has had any luck trying to do
this.
Cheers
Matt
Jack Moxley wrote
image on html element [reply] Tue, 03 Apr 2007 10:39:21
Always best to use css , and your better off styling the body element
rather than the html element.
Matt Keogh wrote:
> Hi all
>
> I've tried to add a background image to the HTML element a few times but
it
> always seems buggy in IE5 and IE5.5. - This seems a bit of a shame as all
> the browsers I test on are fine with it.
>
> I can change the colour but the background image shows randomly -
sometimes
> after a refresh and sometimes after a window re-size. I don't think it has
> anything to do with "hasLayout" as the HTML element should already have it
> and I've tried giving it dimensions.
>
> Just wandering if anyone else has found a way to do this or if styling the
> HTML element is a "no no".
>
_______________________________________________________
This email has been scanned for viruses by MessageLabs.
More information about the BNMlist
mailing list. Powered by Wessex Networks