[BNM] Background image on html element

Julian Blundell old at w34u.com
Tue Apr 3 14:27:03 BST 2007


There are ie only conditional commands that will be ignored by other
browsers since they are in comments.

see http://www.quirksmode.org/css/condcom.html

for the info, way better than hacks.

Julesw

On 03/04/07, Matt Keogh <Matt at cst-group.com> wrote:
>
> 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.
> --
>
> BNM Subscribe/Unsubscribe:
> http://lists.wessexnetworks.com/cgi-bin/mailman/options/bnmlist/
> BNM info/archives:
> http://www.brightonnewmedia.org/
>
> BNM archive search:
> http://www.roddis.org/bnm/search.php
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>



More information about the BNMlist mailing list. Powered by Wessex Networks