Grow your CSS skills. Land your dream job.

problem with font sizes and em

  • # October 2, 2009 at 9:09 am
    Code:

    < ?php
    include("mysql_connect.php");
    echo"

    “;
    //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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".