Click here to get back home

How are images best set as
background?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How are images best set as Number 11950 - GPEMC! Replace 08-26-2006
Posted by Number 11950 - GPEMC! Replace on August 26, 2006, 10:12 pm
Please log in for more thread options


Just looking for the best way to set an image to fill a <div> container as a
background without upsetting HTML/CSS validation...

Thanks in Advance...

--
Timothy Casey GPEMC! >> 11950 is the number@fieldcraft.biz 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover valid interoperable web menus, IE security, TSR Control,
& the most advanced speed reading application @ www.fieldcraft.biz



Posted by Spartanicus on August 27, 2006, 1:52 am
Please log in for more thread options


"Number 11950 - GPEMC! Replace number with 11950"

>How are images best set as <div> background?

Note that the widespread practice of coding images as CSS background
images is mostly misguided. If like many you have been "inspired" by CSS
ZenGarden, note that their coding practices result from a fundamental
flaw in their methodology, the resulting coding should not be emulated.

Coding images as CSS background images thwarts two types of essential
and/or basic functionality:

1) Non decorative images should be substituted by appropriate alt
content if a UA does not process images.

2) For decorative images the screen space occupied by images should be
freed up if a user has images disabled and CSS enabled.

--
Spartanicus

Posted by Sym on September 1, 2006, 4:19 am
Please log in for more thread options



Spartanicus wrote:

> Note that the widespread practice of coding images as CSS background
> images is mostly misguided. If like many you have been "inspired" by CSS
> ZenGarden, note that their coding practices result from a fundamental
> flaw in their methodology, the resulting coding should not be emulated.

Out of interest, what is the fundamental flaw in their methodology ?


rgds
Symeon.


Posted by Stephen Poley on August 27, 2006, 4:56 am
Please log in for more thread options


On Sun, 27 Aug 2006 12:12:20 +1000, "Number 11950 - GPEMC! Replace

>Just looking for the best way to set an image to fill a <div> container as a
>background without upsetting HTML/CSS validation...

Take note of what Spartanicus says. Assuming it's really a background,
then use CSS, e.g:

#mydiv {background: url(paper.jpg) #FFF8E8; color:black; }

where the background colour specification is an appropriate colour to
use if the image is not loaded.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/

Posted by David E. Ross on August 27, 2006, 7:03 pm
Please log in for more thread options


Number 11950 - GPEMC! Replace number with 11950 wrote:
> Just looking for the best way to set an image to fill a <div> container as a
> background without upsetting HTML/CSS validation...
>
> Thanks in Advance...
>

Just be sure that the background does not interfere with reading text.
In general, background images should be similar to a watermark created
by Word: transparent and light.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>

Similar ThreadsPosted
Background images January 25, 2005, 5:19 pm
with background image - what's the right way? March 4, 2005, 5:51 pm
Cannot set background color (XML+CSS) July 6, 2005, 12:16 am
How to make background img fit June 28, 2006, 10:01 am
CSS background-attachment May 19, 2007, 12:36 pm
IE7 doesn't display background.. May 23, 2007, 10:55 pm
2 layers fixed background ? July 17, 2004, 5:20 pm
cell background color February 15, 2005, 1:23 pm
How to unable background sound June 7, 2005, 5:24 pm
CSS Bug?? background-image - Not Refreshing October 25, 2005, 10:39 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap