This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > June 2004 > How can I lock cell width in Dreamweaver template?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can I lock cell width in Dreamweaver template?
C Knights

2004-06-02, 11:16 pm

I'm creating a template and want to 'lock' the width of a cell in the template.

I've given the table cell a width value in pixels, but when I import a picture
into the cell it automatically expands to the width of the picture. Can anyone
tell me how to prevent this?

When I import a picture that's larger than the cell's width I want it to
automatically shrink the picture to fit the cell.

Murray *TMM*

2004-06-02, 11:16 pm

> Can anyone
> tell me how to prevent this?


You cannot reliably. A table/cell will always expand to fit its contents.

> When I import a picture that's larger than the cell's width I want it to
> automatically shrink the picture to fit the cell.


This is not how HTML works.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"C Knights" <webforumsuser@macromedia.com> wrote in message
news:c9k9m2$rja$1@forums.macromedia.com...
> I'm creating a template and want to 'lock' the width of a cell in the

template.
>
> I've given the table cell a width value in pixels, but when I import a

picture
> into the cell it automatically expands to the width of the picture. Can

anyone
> tell me how to prevent this?
>
> When I import a picture that's larger than the cell's width I want it to
> automatically shrink the picture to fit the cell.
>



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews