Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop background image repeat

Status
Not open for further replies.

sdh

Programmer
Apr 30, 2001
121
GB
can someone please tell me the correct syntax to stop a background image within a table repeating

thanks

sdh ::)
 
You can do it using CSS :-

(Copied from
> 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.
TandA

Day by day, the penguins steal my sanity.
 
what he said For God so loved the world that he gave his one and only son, that whoever believes in him won't die but have everlasting life - Jesus - John 3:16 -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top