Background Repeat

H

Harvey

I am trying to keep the background from repeating on a page with no success.
Here is the current code, which is obviously wrong, but I have tried every
other syntax I can think of and none of them work:

</head>

<body background="images/lamppostheader.gif" {no-repeat}>

</html>

Some references I see seem to say that this is only possible in css. Is that
true? Also, can this be made to work wiyh Firefox as well as IE?

I would appreciate clarification on the use of this command.

Thanks,
Harvey
 
K

Kevin Spencer

Hi Harvey,

Yes, it's done with CSS. Use the "background-repeat" style, and set it to
one of the following:

repeat-x
repeat-y
repeat
no-repeat

Example:
<body background="images/lamppostheader.gif"
style="background-repeat:no-repeat">

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
M

Murray

<body
style="background-image:url(images/lamppostheader.gif);background-repeat:no-repeat;">
Some references I see seem to say that this is only possible in css. Is
that true?
Yes.

Also, can this be made to work wiyh Firefox as well as IE?

The above line, with inline CSS, will work with all browsers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top