Forums

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

Home Forums CSS problem with font sizes and em

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26317
    Code:

    “;
    //echo “New topic“;
    echo “

    blahblah

    total totality

    “;

    $sql = mysql_query(“SELECT * FROM category ORDER BY cat_id “);
    $i=0;
    while($row = mysql_fetch_array($sql)) {
    $i=$i+1;
    $topics = mysql_num_rows(mysql_query(“SELECT * FROM topics WHERE cat_id='”.$row[‘cat_id’].”‘”));
    $replies = mysql_num_rows(mysql_query(“SELECT * FROM replies WHERE cat_id='”.$row[‘cat_id’].”‘”));
    if($i%2==0)
    {
    echo “

    “.$topics.”

    “;
    }

    if($i%2==1)
    {
    echo “

    “.$topics.”

    “;
    }
    }

    echo”

    “;
    mysql_close($con);
    ?>

    my question is that first the div tag with one and oneone class is not following the fontsize which i declare in as css means it only follows the browser but not the css …suppose if browser is at 16 px then no matter what value you pass in font size it will remain fix at 16 px…althoug the second and secondsecond class follow the css rule and follow the fontsize laid by css in style tags..where is the prob

    and second thing supose if i use em then the problem as above exist but another problem suppose the user change the font size in browser then the layout become abrupt what to do to make layout follow the line as it was suppose to

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