Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS weird behaviour of text with in a div !

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35764
    amyth91
    Participant

    create a div that pulls content from a database, i used the same type of div’s on two different pages, on one of the page the data is absolutely fine. but on the other page the data keeps on overflowing in x direction.

    can anyone tell me whatz wrong with it !! ???


    foreach($myresult as $display) {

    echo "

    ".$display."

    ";
    echo "


    ".$display."
    ";

    } ?>

    this is the php code i used to pull the data within left-philantropy div. and here is its css

    #philantropy .left-philantropy{
    width:500px;
    height:400px;
    padding:10px;
    float:left;
    position:relative;
    text-align:justify;
    overflow:auto;
    }
    #93176
    djpic
    Participant

    Try making the overflow hidden in the left-philantropy class. Also, what is your parent #philantropy and tagline class? Also, your position doesn’t have to be relative if you are using floats.

    #93217
    djpic
    Participant

    can you give us an example of the text that is being outputted by the script?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.