Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Background image

$
0
0
Re: Background image
Web Connection 5.0
Re: Background image
04/28/2012
05:03:50 PM
3HN10KO49 Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None
That doesn't work - there's no attribute for background that takes an image.

You really should not use attributes for display behavior. You should use styles:

body { background-image: url(images/MyBackground.jpg); background-repeat: no-repeat; background-position: top left; }

Probably not a good idea to do this on the body element either - instead create a top level <div> tag and wrap the entire content with this. Reason is that lots of stuff inherits of the body element.

+++ Rick ---


Dear Rick,
please, how to show a image on background?
I tried with:

<body background="images/MyBackground.jpg">

but I do not see any image.
Thank you very much



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii

Viewing all articles
Browse latest Browse all 10393

Trending Articles