Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Non-repetitive tiling


Message #1 by "Hugh McLaughlin" <hugh@k...> on Tue, 10 Jul 2001 01:23:45
Mat, you were 5% right! :)
It's very possible, and quite easy in fact.
It's done in a style sheet, preferably linked (because I'm fussy).
Put the property "background-repeat" into your style sheet. You may 
then define it with the following values:
repeat: repeats in all directions (default, not what you want!)
repeat-x: image repeats only horizontally
repeat-y: repeats only vertically
no-repeat: image appears once, does not repeat
So your style code might look something like this:

TABLE.noRepeat { background-repeat: no-repeat; }

Then simply add class="noRepeat" to the table in question.

You may have some problems with browser incompatibility, but that's 
the most effective way to do it. Hope that helps!


> I don't think it's possible; about 95% sure.  But there is hope!  Work 
> around would be to adjust your image to be gigantic.  1000x1000, 
or 
> whatever.  Adjust the borders of your image to have whitespace 
behind it.  
> It would still repeat, but no one would tell.  It would also allow for 
> more control if you want it centered, etc.  40 down, 30 right; etc.
> 
> Good luck,
> 
> Mat
> swiftpage.com
> 
> 
> 
> > Hello everyone,
> > 
> > I have a background image that I want to use for a table, but only 
want 
> it 
> > to display once.  Can someone tell me how to stop the image 
from 
> > repetitively tiling?
> > 
> > Thanks in advance.

  Return to Index