HighDots Forums  

DIVs for various sizes

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss DIVs for various sizes in the Macromedia Dreamweaver forum.



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

Default DIVs for various sizes - 11-02-2005 , 07:58 PM






I want to create a DIV that will work for all pages in my website. However,
I am running into some problems.

I am placing images and text into each DIV, and the images vary in width.

If I create the DIV as width: auto, the image will fit and the DIV will
expand to hold the image, but the text will scroll forever to the right.

How do I create a DIV that expands to the width of the image, but not
beyond? I would prefer not to have to create 50 DIVs for the purpose of
varying image sizes. I need the DIV to hold the image, so that I can place
the tedxt underneath the image, not exceeding the width of the image.


Is it possible?



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: DIVs for various sizes - 11-02-2005 , 08:58 PM






..oO(gage25)

Quote:
How do I create a DIV that expands to the width of the image, but not
beyond? I would prefer not to have to create 50 DIVs for the purpose of
varying image sizes. I need the DIV to hold the image, so that I can place
the tedxt underneath the image, not exceeding the width of the image.


Is it possible?
Where are all the divs coming from? Do you build the site by hand or is
there some script? If the latter then it's quite easy to get the image
size and put some inline-CSS into each div to set its size. BTDT.

Or make all images the same size if possible.

Micha


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.