|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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%; |
|
#3
|
|||
|
|||
|
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...
|
|
#4
|
||||
|
||||
|
RE: NON-PHP related - Divs
maybe you could nest the div's in a container div and make the nested div's 100% height.
|
|
#5
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Client Side Things' by bakertrg.
Reason: not php |
|
#6
|
||||
|
||||
|
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 |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > NON-PHP related - Divs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|