Entry
When looping with a mysql_fetch_array($result) how do I change the font and size of the results.
Oct 9th, 2002 17:30
Reza A Tabibazar, Jerry Guess,
one way is to use css
$row = mysql_fetch_array($result) or die(mysql_error()."Could not
fetch row one");
print ('<div class="shout"><p>'. "\n");
echo $row['msg'].'<br/>';
print ('</p></div>'. "\n");
}
shout is declared in the a style.css file or the head section like this
.shout {
border : #A9A9A9;
display : block;
padding-top : 4px;
padding-right : 0px;
padding-bottom : 4px;
padding-left : 4px;
border-top-width : 0px;
border-right-width : 1px;
border-bottom-width : 1px;
border-left-width : 1px;
border-style : solid;
width : 145;
text-align : left;
align : left;
line-height: 130%;
font-size : 70%;
}
or you can use the font tag
<font color="#A9A9A9"> something </font>