toplisek
04-12-2006, 02:09 AM
I have problem, that CLASS for error should have constant width.
It works if I have error like:
echo '<p style="font-family: Trebuchet MS, Arial, Sans-serif;font-size: 12px;
border:1px solid #FF3300; padding:2px; width:300px;font-weight: normal;">';
echo 'Please change error:';
echo (isset($error)) ? $error : " </p>";
But if I use CLASS it will not be width 300px, just 100% width
e.g. for CLASS :
.message { width:300px;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
line-height: 16px; text-decoration: none;
background-color: #FFFFFF;border:1px solid #FF3300; padding:2px }
Do you know what can be wrong in CLASS?
It works if I have error like:
echo '<p style="font-family: Trebuchet MS, Arial, Sans-serif;font-size: 12px;
border:1px solid #FF3300; padding:2px; width:300px;font-weight: normal;">';
echo 'Please change error:';
echo (isset($error)) ? $error : " </p>";
But if I use CLASS it will not be width 300px, just 100% width
e.g. for CLASS :
.message { width:300px;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
line-height: 16px; text-decoration: none;
background-color: #FFFFFF;border:1px solid #FF3300; padding:2px }
Do you know what can be wrong in CLASS?