Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 24th, 2006, 09:38 AM
BoRiS BoRiS is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Belton, Norfolk, England
Posts: 13 BoRiS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
NON-PHP related - Divs

heya guys,

I am a web designer by occupation however i was wondering if it was possible to stretch divs vertically with each other like you can tables? For example if one <div> grows because of more content inside it, can you make the other get bigger too?

I could probably come up with some complex php script that counts the lines then adds the appropriate amount of line breaks but id rather to it another way, is there another way?

Reply With Quote
  #2  
Old February 24th, 2006, 10:09 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: NON-PHP related - Divs

if you are talking about the nested divs YES it is possible if you don't use the fix width tag, ex. width:150px.
try instead width:25%;

Reply With Quote
  #3  
Old February 24th, 2006, 12:56 PM
BoRiS BoRiS is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Belton, Norfolk, England
Posts: 13 BoRiS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: NON-PHP related - Divs

in case you didnt notice im talking about HEIGHT or the vertical side of things, as my content will more than likely vary in lengths i want the rest of the page to stretch too...

Reply With Quote
  #4  
Old February 24th, 2006, 08:51 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: NON-PHP related - Divs

maybe you could nest the div's in a container div and make the nested div's 100% height.

Reply With Quote
  #5  
Old February 24th, 2006, 08:52 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by bakertrg.

Reason: not php

Reply With Quote
  #6  
Old February 25th, 2006, 02:40 PM
Doik's Avatar
Doik Doik is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: ger
Posts: 337 Doik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 44 m 13 sec
Reputation Power: 2
Send a message via ICQ to Doik
RE: NON-PHP related - Divs

this usually doesn't work. If it is related to a background image, what it mostly is (ie, a bg image from the left div only looks ok, if the bg of the right div is exactly the same height), the best solution imho is putting the two divs in one wrapper, and assigning the complete background to that layer.
HTH

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > NON-PHP related - Divs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway