browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need HTML / CSS help?

Get answers from our community of HTML / CSS experts on BYTES! It's free.

Dynamic background image

davidfahy@gmail.com
Guest
 
Posts: n/a
#1: Jun 20 '06
Hi all,
I have an aspx page and have written a general css stylesheet to
brand the page. However I want to make the header image dynamic.
Basically a link to the image will be passed to me in the request for
my page so what I would like to do is then pass that link into the
stylesheet and set it in the background-image: url(Link_to_image); Is
this possible?

Thanks in advance




Andy Dingley
Guest
 
Posts: n/a
#2: Jun 20 '06

re: Dynamic background image



davidfahy@gmail.com wrote:
[color=blue]
> I have an aspx page and have written a general css stylesheet to
> brand the page. However I want to make the header image dynamic.[/color]

Do it in the HTML page, leaving the CSS stylesheet alone (so it may be
cached).

You can easily set the background image through a small inline
stylesheet in the <head> of the HTML page, or even in a style attribute
on a <body> element itself.

Closed Thread