Re: Stop Background Repeating

Chris Ridd (C.Ridd@imc.exec.nhs.uk)
Mon, 30 Dec 1996 12:43:24 +0000


Message-Id: <32C7B8EC.37DE@imc.exec.nhs.uk>
Date: Mon, 30 Dec 1996 12:43:24 +0000
From: Chris Ridd <C.Ridd@imc.exec.nhs.uk>
To: Andre Mas <amas@lhr-sys.DHL.COM>
Cc: www-html@www10.w3.org
Subject: Re: Stop Background Repeating

Andre Mas wrote:
> 
> %UNIPLEX
> %TO            www-html@w3.org
> %FROM          amas
> %SYSTEM        DHLNET
> %SUBJECT       Stop Background Repeating
> %VERIFY        y
> %DATE          30/12/96 12:18
> %REFERENCE     350887
> 
> I get frustrated when I have a background image with a column on the
> left and since I am viewing the window larger the I should I get more
> columns than I should.  Would it be possible to add to the background
> tag a setting where the browser does not repeat the image in the
> horizontal plain?

There's no need to add anything to an HTML tag, as this functionality is
already in CSS1.

(Copied from
http://www.w3.org/pub/WWW/TR/REC-CSS1.html#background-repeat)

> 5.3.4    'background-repeat' 
> 
> Value: repeat | repeat-x | repeat-y | no-repeat
> Initial: repeat
> Applies to: all elements
> Inherited: no
> Percentage values: N/A
> 
> If a background image is specified, the value of 'background-repeat' determines how/if the
> image is repeated. 
> 
> A value of 'repeat' means that the image is repeated both horizontally and vertically. The
> 'repeat-x' ('repeat-y') value makes the image repeat horizontally (vertically), to create a single
> band of images from one side to the other. With a value of 'no-repeat', the image is not repeated.
> 
>   BODY { 
>     background: red url(pendant.gif);
>     background-repeat: repeat-y;
>   }
> 
> In the example above, the image will only be repeated vertically. 

Chris