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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture is wrapping around?

Status
Not open for further replies.

paul123456

Technical User
Apr 29, 2002
518
US
I have a table on the top of my page with the backround set to a gif that i have as the site title. The problem is that it is wrapping around..the picture shows..but after it ends it starts over again? i been trying to figure out were the setting is but had no success? can someone help me out

Thanks, PAUL

 
Use css, put this in the head of your document
Code:
<style type="text/css">
<!--
td {
	background-repeat: no-repeat;
}
-->
</style>

Cheech

[Peace][Pipe]
 
Hey guys, did you try that, because it didn't work for me. I put the code in excatly like Cheech wrote it and placed it between the head tags. am I missing something here?

ps- I am on a mac if that makes a difference. thanks, r
 
Mac shouldn't make a difference but the browser you are using will. (IE , NS, Safari...)

If I am using a background image I usually create an image that is repeatable left to right (10px x 3000px). If you regularly expect pages to be long enough for the background to wrap you should make the image taller. (You can also make it wider if you choose but making it thinner will increase time to render the page in the browser.)

Hope it helps!

Wow JT that almost looked like you knew what you were doing!
 
make a css class, like so

<style type="text/css">
<!--
.back{
background-image: url(image.jpg);
background-repeat: no-repeat;
}
-->
</style>
...
...
<tr>
<td class="back"> hello </td>
</tr>

:--------------------------------------------------------------------------:
fugitive.gif

ok,ok...I did shoot the deputy but he told me he was the sheriff!
:--------------------------------------------------------------------------:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top