Log in

View Full Version : Ask About CSS



keren2
03-18-2007, 09:10 AM
How The CSS Could Be if I Want Something like this...

i have a div that will content text like testimonial and so on

like this


<div id="testimonial"><? include("./testimonial.php"); ?></div>


So, This will get all text in testimonial.php into this div tag right??

my question is, how i can make the div will be scrollable if the length of testimonial.php's text is greater than 200px in height and make the div follow the length of testimonial.php's height if the text isn't greater than 200px in height??


basically.... what i want to say is

i want to make this div scrollable if the height of the text length is greater than 200px and if the text length is not greater than 200px in height, make the div follow the text height....

for example, the friendster testimonial, if the testimonial text length is greater than 200px in height, i want to make it scrollable, and if not, make the border right below the text...

jscheuer1
03-18-2007, 03:07 PM
If the text in the include is unformatted or has limited formatting (basically, if it can wrap), this (untested) should work out fairly well:


#testimonial {
overflow:auto;
max-height:200px;
height:auto!important;
height:200px;
}

keren2
03-19-2007, 01:40 AM
Thank You... It's Working....

ascii
03-19-2007, 02:50 AM
Can anyone please please help me how can I compile and run an image.css file ?