HighDots Forums  

Auto-stretch an image vertically to fit cell height?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Auto-stretch an image vertically to fit cell height? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cameron_S
 
Posts: n/a

Default Auto-stretch an image vertically to fit cell height? - 06-28-2004 , 09:21 PM






Is it possible to auto-stretch an image to fit a cell height in
Dreamweaver?

I have a situation where my main body htm will vary with length as
more content is added, and rather than creating new side border images
to the correct length every time the page is updated, I want the side
image border to auto-stretch to fit the height of the table (governed
by the height of the centre column of the table (the main content
part)).

link to website here:
http://www.arach.net.au/~cr_smith/ashleymx.com/

Thanks
mytzlplik

Reply With Quote
  #2  
Old   
Craig
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-28-2004 , 10:31 PM






yep image properties - height="100%" will give you the height of the cell or
table.

Craig


"Cameron_S" <mr_mytzlplik (AT) hotmail (DOT) com> wrote

Quote:
Is it possible to auto-stretch an image to fit a cell height in
Dreamweaver?

I have a situation where my main body htm will vary with length as
more content is added, and rather than creating new side border images
to the correct length every time the page is updated, I want the side
image border to auto-stretch to fit the height of the table (governed
by the height of the centre column of the table (the main content
part)).

link to website here:
http://www.arach.net.au/~cr_smith/ashleymx.com/

Thanks
mytzlplik



Reply With Quote
  #3  
Old   
Alan
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-28-2004 , 10:39 PM



some browsers will get this correct- 100% height of an image means the
image's actual height. If the image is 200 pixels high, 100% percent height
means it will be displayed 200 pixels high.

Some browsers get this wrong. (and in those browsers, your suggestion will
work) Has nothing to do with percentage height of whatever table cell or
other thing the image is placed in.

Quote:
yep image properties - height="100%" will give you the height of the cell or
table.


Reply With Quote
  #4  
Old   
Craig
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-28-2004 , 10:47 PM



True.
However the browsers that get it 'wrong' happen to be IE, Netscape and
Opera, too.

'nough said?

Craig


"Alan" <dont_mail_me_period (AT) macromedia (DOT) com> wrote

Quote:
some browsers will get this correct- 100% height of an image means the
image's actual height. If the image is 200 pixels high, 100% percent
height
means it will be displayed 200 pixels high.

Some browsers get this wrong. (and in those browsers, your suggestion will
work) Has nothing to do with percentage height of whatever table cell or
other thing the image is placed in.

yep image properties - height="100%" will give you the height of the
cell or
table.




Reply With Quote
  #5  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-28-2004 , 11:18 PM



There is no real cross browser reliable way to achieve this. Why not use a
repeating image declared in your stylesheet so that the image repeats down
as your content grows.
See if this helps at all.
http://www.dreamweaversites.com/tutorials/roundedcorners.htm

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------


"Cameron_S" <mr_mytzlplik (AT) hotmail (DOT) com> wrote

Quote:
Is it possible to auto-stretch an image to fit a cell height in
Dreamweaver?

I have a situation where my main body htm will vary with length as
more content is added, and rather than creating new side border images
to the correct length every time the page is updated, I want the side
image border to auto-stretch to fit the height of the table (governed
by the height of the centre column of the table (the main content
part)).

link to website here:
http://www.arach.net.au/~cr_smith/ashleymx.com/

Thanks
mytzlplik



Reply With Quote
  #6  
Old   
James Shook
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-29-2004 , 08:43 AM



Once you have solved this, you will then have to address the problem
that, because your lower frame requires a scrollbar, the tables in your
two frames fail to align. I'll save you some time: there is no way to
solve this except not to use frames.

--
James M. Shook
http://www.jshook.com

Reply With Quote
  #7  
Old   
Cameron_S
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-30-2004 , 12:25 AM



Yer, that's wehat I have found. Putting 100% in the vertical height
box for the image properties, gives me 100% of the images original
height. Not what I'm after.

I havent actually tried viewing it in IE with it set to 100% though.
Just presumed that since it didn't show in dreamweaver properly, it
wouldn't work. I'll see what happens.

Cameron_S

Alan <dont_mail_me_period (AT) macromedia (DOT) com> wrote

Quote:
some browsers will get this correct- 100% height of an image means the
image's actual height. If the image is 200 pixels high, 100% percent height
means it will be displayed 200 pixels high.

Some browsers get this wrong. (and in those browsers, your suggestion will
work) Has nothing to do with percentage height of whatever table cell or
other thing the image is placed in.

yep image properties - height="100%" will give you the height of the cell or
table.

Reply With Quote
  #8  
Old   
Cameron_S
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-30-2004 , 12:27 AM



Repeating image hey?
That tutorial you posted didnt help. That was just filling a
background colour in a table and putting in some rounded corners.
Unless I'm missing something?

I'll look into this 'repeating image declared in the stylesheet' and
see how I go.

Thanks
Cameron_S

":. Nadia .:" <nadia@no-junk=dreamweaverresources.com> wrote

Quote:
There is no real cross browser reliable way to achieve this. Why not use a
repeating image declared in your stylesheet so that the image repeats down
as your content grows.
See if this helps at all.
http://www.dreamweaversites.com/tutorials/roundedcorners.htm


Reply With Quote
  #9  
Old   
Cameron_S
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-30-2004 , 12:31 AM



Hi James,

What do you mean? Are you saying that if I somehow get rid of that
nasty horizontal scroll bar in the middle frame (that shouldnt be
there), the tables will no longer align and there's nothing I can do
about it? 8-(

What are my other easy options apart from using frames to achieve the
same result?

Thanks
Cameron_S

James Shook <jshook (AT) dont_mail (DOT) com> wrote

Quote:
Once you have solved this, you will then have to address the problem
that, because your lower frame requires a scrollbar, the tables in your
two frames fail to align. I'll save you some time: there is no way to
solve this except not to use frames.

Reply With Quote
  #10  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Auto-stretch an image vertically to fit cell height? - 06-30-2004 , 01:32 AM



"Cameron_S" <mr_mytzlplik (AT) hotmail (DOT) com> wrote in message
Quote:
That tutorial you posted didnt help. That was just filling a
background colour in a table and putting in some rounded corners.
Unless I'm missing something?
No you are right, I didn't post the correct link - sorry. There is
another one that shows you how to slice up the image and use side pieces for
the edges instead of colour. Can't find the link right now though :\

Quote:
I'll look into this 'repeating image declared in the stylesheet' and
see how I go.
this is the best option, give the side cells a class or id and declare a
background image or the right and left sides.
Maybe tricky to get the top cells, bottom cells and side cells lined up, but
is definitely doable.

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.