Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Q. Background graphic width ?

Reply
Thread Tools

Q. Background graphic width ?

 
 
Jim Jones
Guest
Posts: n/a
 
      04-14-2004
Hi,

Can someone please tell me how to specify my background graphic width
in the body tag, so that I don't get duplicate sets of verticle lines?

thanks,
jim
 
Reply With Quote
 
 
 
 
Toby A Inkster
Guest
Posts: n/a
 
      04-14-2004
Jim Jones wrote:

> Can someone please tell me how to specify my background graphic width
> in the body tag,


body {
background-repeat: repeat-y;
}

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      04-14-2004
Jim Jones wrote:
> Can someone please tell me how to specify my background graphic width
> in the body tag, so that I don't get duplicate sets of verticle lines?


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/>
 
Reply With Quote
 
Hywel
Guest
Posts: n/a
 
      04-14-2004
In article <(E-Mail Removed)>,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> Hi,
>
> Can someone please tell me how to specify my background graphic width
> in the body tag, so that I don't get duplicate sets of verticle lines?


Use CSS:
http://www.w3c.org/TR/CSS1#color-and...und-properties

--
Hywel I do not eat quiche
http://kibo.org.uk/
http://kibo.org.uk/mfaq.php
 
Reply With Quote
 
ollimax
Guest
Posts: n/a
 
      04-15-2004

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

I played once with a 'background-text'.
Made a layer something like this:

#bgr{
width :100%;
height :100%;
font-size : huge;
line-height : minimal;
letter-spacing : minimal;
color : #dda;
z-index : 1;
top :0;
left:0;
etc...
}

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?

OllímaX!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically change my background graphic? Mike Silva HTML 18 12-19-2006 08:49 PM
Is it possible to mouseover a GRAPHIC . . . that launches another (freestanding) GRAPHIC (ie. when flash is _not_ available)? 50 SOMETHING GAL HTML 3 12-10-2006 01:10 AM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
Graphic with transparent background Toyalp2 Computer Support 5 03-12-2005 12:18 PM
Background graphic doesn't display in AOL Steve HTML 6 10-20-2003 08:34 AM



Advertisments