hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Adjustable height using CSS?
Reply

Forum Jump

Adjustable height using CSS?

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Disabled
 
Join Date: Dec 2003
Posts: 1,941

Adjustable height using CSS?


Hello, I have a friend helping me with a CSS design but it takes him about a week to make one simple change so I would like to fix this one thing myself. I once asked him now to make a div height variable so the more text/data is in the area it automatically moves the other divs around it to the next line. He fixed it but I do not want to bother him again so I would like to know how to do this. Could you please give me a working example of code so that if there are added rows it would push the div content below it to the next line instead of overlapping each other. I can set a manual height: 150px and it works but if there is no text on that section it just displays a big empty space which is why I want a variable height. I tried searching all over google and cannot find that. Thanks


Last edited by lexington; 09-06-2008 at 12:52 PM.


Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: Jan 2008
Location: St. John's, NL
Posts: 2,075
Usually height:auto will take care of this. Take a look at a site I put together recently, premiumdjs dot com, and see how it is done there. Hope it helps

__________________
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)

  #3  
Old
Disabled
 
Join Date: Dec 2003
Posts: 1,941
Yeah I tried that before creating this topic but it didn't work.

Sponsored Links
  #4  
Old
Web Hosting Master
 
Join Date: Jan 2008
Location: St. John's, NL
Posts: 2,075
Did you try using position: on your divs?

__________________
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)

  #5  
Old
#ibuildwebsitesandstuff
 
Join Date: Aug 2005
Location: Barcelona, Spain
Posts: 3,362
just remove the height, there's no need to add it, unless you want a specific height. Adjustable height is actually the default setting. If it doesn't work, there's other CSS probably interfering. Do you have a live example?

__________________
hi there!

  #6  
Old
Disabled
 
Join Date: Dec 2003
Posts: 1,941
Thanks for the help guys but I just used php to detect how many characters are on the page and to insert the height div based on the results and that does the trick for now.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Supreme Court Ruling Opposes Aereo's Streaming Service, But Leaves Many Issues Around Cloud Services Unsettled Web Hosting News 2014-06-26 18:11:36
Web Host BurstNET to Shut Down Customer Services by July 25 Web Hosting News 2014-06-24 18:21:24
Cloud Host DigitalOcean Supports Public IPv6 Addresses in New Singapore Region Web Hosting News 2014-06-17 18:08:11
New Solid-State Option Available to Users of Amazon’s Block Storage Cloud Web Hosting News 2014-06-17 13:50:13
OnApp Opens Public Cloud Compute Marketplace for Service Providers Web Hosting News 2014-06-17 10:08:31


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?