Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Writers > Re: image backg...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 313 of 331
Post > Topic >>

Re: image background sizing

by Adrienne Boswell <arbpen@[EMAIL PROTECTED] > Sep 16, 2007 at 05:45 AM

Gazing into my crystal ball I observed "Jeff" <akaman@[EMAIL PROTECTED]
>
writing in news:13eosuf70bevsa5@[EMAIL PROTECTED]
 

> 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.

> 
> 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.
 
> 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




 2 Posts in Topic:
image background sizing
"Jeff" <akam  2007-09-15 19:07:54 
Re: image background sizing
Adrienne Boswell <arbp  2007-09-16 05:45:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 10:58:17 CDT 2008.