|
| Author |
Message |
ilikechikin
Joined: 26 Feb 2004
Posts: 75
|
Posted: 3/1/2004, 1:14 am Post subject: Image in table |
|
|
| i have a problem with an image in a table. i set the table width to 26% or so but the table winds up only going as wide as the image is. how can i make it so the table extends all the way to the 26% instead of stopping when the image ends? |
|
| Back to top |
|
 |
Pyrox
Joined: 10 Feb 2003
Posts: 158
Location: Blorp
|
Posted: 3/1/2004, 1:43 am Post subject: |
|
|
Uhm.... is 26% too small for the picture? The table will only go as small as the picture, so if 26% of the page is less than the picture, the table will only go as small as the pic....
Does that help?
Post code and we can look at it. _________________ Developercube Mod
Happiness is a belt-fed weapon
Consciousness: That annoying time between naps.
Out of my mind. Back in five minutes
Want a free ipod? |
|
| Back to top |
|
 |
Burning_Cyclope
Joined: 26 Feb 2004
Posts: 61
Location: MA
|
|
| Back to top |
|
 |
ilikechikin
Joined: 26 Feb 2004
Posts: 75
|
Posted: 3/1/2004, 2:02 am Post subject: |
|
|
| i think the problem was the image is to big for 26% so i gotta fix that. it never would have occured to me |
|
| Back to top |
|
 |
Manao
Joined: 26 Feb 2004
Posts: 23
Location: France, Toulouse, South of France near Mountains
|
Posted: 3/3/2004, 11:42 pm Post subject: |
|
|
An other way is to use CSS2 for such things. Take a <DIV> instead and use a class for your image.
div.myclass img {float: left;width: 26%;}
or something like this.
and the code could be :
<div class="myclass"><img src="img/my_pict.png" /></div> _________________ Manao, chief cooker of CSS |
|
| Back to top |
|
 |
|