fixed width of table cells

T

tony vella

If I set the width of an image wider than the width of the cell into
which it goes, the cell automatically widens to accommodate the wider
image. How do I stop the table from doing that? Thanks in advance.

Tony Vella
Ottawa, Ontario, Canada
http://amedialuz.ca
 
1

123Jim

tony vella said:
If I set the width of an image wider than the width of the cell into
which it goes, the cell automatically widens to accommodate the wider
image. How do I stop the table from doing that? Thanks in advance.

Tony Vella
Ottawa, Ontario, Canada
http://amedialuz.ca

I guess you can set the image as a cell background:

<td style="width: 50px; max-width: 50px;">
<img style="width: 70px; height: 50px;"
alt="background image"
src="background.png">
</td>
 
1

123Jim

123Jim said:
I guess you can set the image as a cell background:

<td style="width: 50px; max-width: 50px;">
<img style="width: 70px; height: 50px;"
alt="background image"
src="background.png">
</td>


OOOPs ignore above ... that's an image in a cell not as a background:
<td style="background-image: imagename.png);
background-attachment: fixed;
background-position: center bottom;">
</td>
 
J

Jukka K. Korpela

tony said:
If I set the width of an image wider than the width of the cell into
which it goes, the cell automatically widens to accommodate the wider
image. How do I stop the table from doing that?

And why would you do that? What should happen - should the image be cut off,
or should it overflow outside the cell, or should be shrunk?

As usual, a URL would tell us what you are really doing and would probably
enable us to provide a real solution to the _real_ problem you have been
creating.

On second thought, looking at the URL in your sig, I see
"Resolution: 1280x800 or higher.
Web-font: Times Roman or System Substitute."

I think your site needs a sanity check first. Telling you about table-layout
ooops I almost said it
would just help you in shooting yourself on the foot. Which would be fine if
you were my competitor, of course.
 
D

dorayme

<[email protected]
tony vella said:
If I set the width of an image wider than the width of the cell into
which it goes, the cell automatically widens to accommodate the wider
image. How do I stop the table from doing that? Thanks in advance.

When I was in a killfile one day, I was locked in a nice sunny
cell. I was provided with nice warm and colourful blankets. I was
even allowed to carry on my hobbies. Here is a picture I took one
afternoon. By the way to the thread question, you can see it has
the unusual aesthetically fractal attribute of remaining
reasonably nice even when cut off.

<http://dorayme.netweaver.com.au/blueLight.html>

Opera, as usual, insists on doing things differently to browsers
like FF and Safari. See for yourself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top