Click to See Complete Forum and Search --> : Message border should be the same width


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 : "&nbsp</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?

Fang
04-12-2006, 03:01 AM
Should work, can you give a link?

toplisek
04-12-2006, 03:26 AM
there is just testing page. Not published.

Fang
04-12-2006, 04:02 AM
Possible problem with specificity (http://www.molly.com/2005/10/06/css2-and-css21-specificity-clarified/)