Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fixing width of DIV

Status
Not open for further replies.

Blueman2

Technical User
Aug 5, 2008
27
US
Is it possible to fix the width of a DIV so that content added will continually flow down and not expand the div. I know this works with tables but I'm trying to get away from using them and can't seem to find an answer to this one.

It might be the max width setting but there is no such thing in the css panel in dreamweaver mx 2004. If that is the answer , then I guess I can hand-code it. I'm wondering if it's time to upgrade?

thanks
 
Check out faq222-2244 to see how to get the best from these forums - it gives guidance on asking questions and ackowledging answers given. For this question, just set the width property of the div:
Code:
<div style="width:300px;">

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Thanks,

I did have the width property set in the CSS but apparently I had some other property set that was forcing the content to push the box out.

I just created a new div after your reply and with the height and width and no other property's and for some reason, some of the content flowed outside the BOX. As soon as I changed the "Positioning Type" to "Absolute" it worked fine.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top