Results 1 to 4 of 4

Thread: Ask About CSS

  1. #1
    Join Date
    Dec 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ask About CSS

    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
    Code:
    <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...

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If the text in the include is unformatted or has limited formatting (basically, if it can wrap), this (untested) should work out fairly well:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank You... It's Working....

  4. #4
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can anyone please please help me how can I compile and run an image.css file ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •