PDA

Click to See Complete Forum and Search --> : keep an image a certian size so it doens't cascade in teh cell in html?


struntz
Dec 1st, 2001, 04:48 PM
Hello everyone, i have a table and i just want to put an image file in the table, but i odn't want it to repeat itself over and over again until it fills the whole cell, how can i make it so the image stays the same size and there is still space left over in the cell?

this is the script:

<body LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<table border = "0" cellspacing ="0" cellpadding ="18" width ="100%" height ="130">
<tr>
<td bgcolor ="#336699" width ="100%"
background ="graphics/s8.jpg" valign ="5">
<font face ="arial" size ="+1" color = "white">
<center>
A Site Made for people who like
Programming
</center>
</font></td>
</tr>
</table>


Also if any of u know how to make tables so they arn't just square like how do u make htem have rounded edges and such? thanks for listening.

:D

crptcblade
Dec 1st, 2001, 05:34 PM
<td bgcolor ="#336699" width ="100%"
background ="graphics/s8.jpg" valign ="5" style="background:no-repeat;">


As for question 2, I don't think you can do that, unless you use graphics for the edges, then set the border to 0. But with normal tables, I don't think you can.

:)

zmerlinz
Dec 3rd, 2001, 05:34 AM
no you can't make tables that have round corners on them, well at least i haven't managed to find a way to do it, the best bet like crptblade said, would be to make the pictures that you want in them to have rounded edges and then to make the table have a border of 0. :)