Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Q. Background graphic width ?
- Jim Jones
April 14, 2004, 6:26 pm
rate this thread
Re: Q. Background graphic width ?
There is no provision to scale background images in HTML or CSS.
CSS allows you to specify the position and repeating of background images.
http://w3.org/TR/CSS2/ (and look up "background" in the list of properties)
There is a somewhat nasty hack involving the positioning of a foreground
image behind other content using absolute positioning, but I wouldn't
advise you to use it.
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/
Re: Q. Background graphic width ? slightly OT
I played once with a 'background-text'.
Made a layer something like this:
font-size : huge;
line-height : minimal;
letter-spacing : minimal;
color : #dda;
z-index : 1;
then in the body was simply like this:
<div id="bgr">lots of loremipsum in here</div>
The point of such large font-size was to have a good hash which doesn't
interfere with the content, and make it difficult to read.
Trouble was with layer's edges and text wrapping on the background.
I guess you could get over it by set the clipping. Also I had the
problem that user could select the background-text accidentally instead
of the content.
I guess I soon got a better idea for the background and I forgot this,
and it's no wonder at all. But it would be nice to know if someone had
actually used a solution like this?