Old 06-30-2007   #1 (permalink)
Registered User
 
Join Date: Apr 2006
Posts: 18

expandable DIVS

Is it possible to create expandable divs or not? i read about it somewhere but i cant find the link and have forgotten

if it is possible, could you give me an example please so i can use this for future reference.

Thanks
madkat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-30-2007   #2 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,026

Send a message via MSN to notjustgraphics
Sorry madkat...

I'm not sure what you mean by expandable divs...

You can create divs that expand to fit the content, so for instance, your 'CONTENT' div could expand in height to accomodate varying amounts of copy on different pages...

If you are wanting to create a div that expands in response to user interaction, you can do so using javascript.... You can also get really fancy and cut down on bandwidth using AJAX methods...

If you're using Dreamweaver CS3, it has some spry coding built in to make accordion and tabbed divs...

What is it you're trying to do?

Mike.
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-01-2007   #3 (permalink)
Registered User
 
Join Date: Aug 2004
Posts: 105

Or script.aculo.us - web 2.0 javascript
Jolt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-01-2007   #4 (permalink)
Registered User
 
Join Date: Apr 2006
Posts: 18

sorry i didnt explain myself properly, expanding the div to fit content is what i wanted but to do that, you dont have to specify the heigh of the div right? but it doesnt seem to work for me, unless your meant to do something else
madkat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-01-2007   #5 (permalink)
Registered User
 
Join Date: Aug 2004
Posts: 105

In order for a div to expand vertically to fit content do not specify a height for it.

There may also be problems if you have floats in the div. Floats have no height therefor an enclosing div won't see the height of the float.

What will work is to place a clear property at the base of the enclosing div if possible. A la
Code:
<div class="content">
   <div style="float: left;">
  
        stuff here

   </div>

       More stuff here

   <div style="clear: both;"></div>
</div>
Jolt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-01-2007   #6 (permalink)
Registered User
 
Join Date: Apr 2006
Posts: 18

ok thanks, i'm pretty sure i tried that before and didnt seem to work but i'll give it another shot incase i mytyped something or put it in the wrong place
madkat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iframe and Expandable Content Boxes are evil ! ViciOuS HTML / PHP / ASP / JS 7 05-22-2005 07:32 AM
Independent Expandable Content Boxes. help! ViciOuS HTML / PHP / ASP / JS 9 05-18-2005 02:43 AM


All times are GMT +1. The time now is 08:07 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT