Click to See Complete Forum and Search --> : [RESOLVED] constant width


The Little Guy
07-21-2007, 10:44 PM
OK... I have this code, and I use AJAX to get a image and display it, but between the get and the actually displaying of the image, the text moves, so... I tried this style, and the text still moves... how can I make it so it stays at 127px wide at all times????
echo'<div id="displayImage" style="display:block;width:172px;">';
if($row['gender'] == "Male" && !$defaultSet){
echo '<img class="imgpad10" alt="Unknown Male" src="/images/friends/male172.gif" align="left" />';
}elseif($row['gender'] == "Female" && !$defaultSet){
echo '<img class="imgpad10" alt="Unknown Female" src="/images/friends/female172.gif" align="left" />';
}else{
echo '<img class="imgpad10" alt="User Default" src="/images/users/default/'.$defaultImg.'" align="left" />';
}
echo'</div>';