Welcome visitor
* Login
* Register
It is currently July 18th, 2019, 5:22 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Help with a repeating background
PostPosted: February 3rd, 2010, 5:30 am 

Posts: 22
Hi, how can I use one image for the background without repeating? I've tried changing the size of the image, but that would not work when the size of the window is resized.


Thanks for bearing with me :D


Top
 Profile  
 
  Re: Help with a repeating background
PostPosted: February 4th, 2010, 10:34 pm 

Posts: 117
This is the code. The last part of the second line avoids the repeating thing
<style type="text/css">
body{background-image: url('img.bmp'); background-repeat: no-repeat}
</style>


Top
 Profile  
 
  Re: Help with a repeating background
PostPosted: February 4th, 2010, 10:46 pm 

Posts: 22
Sorry, I know that question has been asked tons of times before, my question actually is how to do that for a table? not the entire page. Sorry, forgot to mention that the first time... :oops:


Top
 Profile  
 
  Re: Help with a repeating background
PostPosted: February 4th, 2010, 10:56 pm 

Posts: 117
<style type="text/css">
table{background-image: url('img.bmp'); background-repeat: no-repeat}
</style>
The previous example will apply to all the tables on your page. To effect just one specific table try with classes:
<style type="text/css">
.oneTable{background-image: url('img.bmp'); background-repeat: no-repeat}
</style>
<table class=".oneTable">


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron