How do you...?

Dasher

Seasoned Veteran
Joined
Sep 22, 2009
Messages
2,611
Reaction score
0
FP$
6
How do you, in HTML or CSS, make it so an image repeats smoothly?

go to my site: http://myteenchat.net

You see those lines in the images? That's because of a repeat. I just need it to stretch without the lines, is there a way?
 
Size it to what you want it to be.

#bg {
width:20em;
height:30em;
}

Is what your looking for, it'll be trial and error though.

Hope I helped you out.
 
Will #bg automatically find the bg image? Because I just took the iwdth and height tags and it changed the entire sites width. XD
 
No you have to define it in the CSS. Such as
.bg {
background: #FFFFFF url(images/titlebg.gif) repeat-x top left;
color: #545454;
font: bold 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}

bg would be in the HTML file <div class="bg">
 
Back
Top Bottom