making div's change size as needed

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

Hi how do you make div's get larger or smaller according to what's in them I have one that contents the body of my work however its to small for one page with a lot of long content on it (a kind of blog) can I make the div get longer as needed :?: :?: :?:
TAR :roll:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • N2S
  • Beginner
  • Beginner
  • User avatar
  • Posts: 48

Post 3+ Months Ago

I dont use div that much. (even though I should)

uhm..
have you tried..
Code: [ Select ]
<div style="width:100%"></div>
<div style="width:auto"></div>
  1. <div style="width:100%"></div>
  2. <div style="width:auto"></div>

(not sure what auto does..)
test it out on a simple test page to see if it works.
  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

Yes tar the <div style="width:100%"></div> one works and it can be changed to <div style="height:100%"></div> as well tar!

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 79 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.