HighDots Forums  

image background sizing

alt.html.writers alt.html.writers


Discuss image background sizing in the alt.html.writers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default image background sizing - 09-15-2007 , 07:07 PM






Please help the noob

On my html site I have a background image displayed with:

<body background="images/bkgrnds/shot02.JPG" link="#FF00FF" vlink="#00FF00"
alink="#00FFFF">

This is however completely unacceptable. Basically I would like the code to
resize the image to the screen resolution of the user.

Any help or pointing me in the correct direction would greatly be
appreciated!

Thank you in advance,
Jeff




Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: image background sizing - 09-16-2007 , 12:45 AM






Gazing into my crystal ball I observed "Jeff" <akaman (AT) akaproz (DOT) com>
writing in news:13eosuf70bevsa5 (AT) corp (DOT) supernews.com:

Quote:
Please help the noob

On my html site I have a background image displayed with:

body background="images/bkgrnds/shot02.JPG" link="#FF00FF"
vlink="#00FF00"
alink="#00FFFF"
Deprecated in favor of CSS:

body {background-image:url(images/bkgrnds/shot02.JPG);}
a:link {color:#ff00ff;}
a:visited {color:#00ff00;}
a:active {color:#00ffff;}

However, please note that a background color should ALWAYS be included
when a color is defined. This is especially true because you, as an
author, do not know what color the user's window background is. For
example, my background color is pale blue, and white elements show up
like sore thumbs when I know the author intended everything to blend in
nicely.

Quote:
This is however completely unacceptable. Basically I would like the
code to resize the image to the screen resolution of the user.

That is not possible right now. CSS3 proposes the background-size
property, but since some popular browsers don't even get CSS2 correctly
now, don't look for CSS3 for quite some time.

Quote:
Any help or pointing me in the correct direction would greatly be
appreciated!

You can tile the image, or position it, and use a complimentary
background color to fill in the remaining space.



--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.