Reply to Re: CSS not being applied

Your name:

Reply:


Posted by GTalbot on 01/14/08 05:07

On 13 jan, 21:46, Dave <david.mh.t...@gmail.com> wrote:
> The following embedded CSS class is not being applied and I don't
> under stand why?
>
> Any help would be appreciated.
>
> <script type="text/css">
> .msg_alert {
> text-weight: bold;
> font-size: 1em;
> color: red;
> }
> </script>
>
> <div class="msg_alert">This should work!</div>
>
> Thanks in advance.

Dave,

text-weight is not a valid CSS property name. font-weight is:

http://www.w3.org/TR/CSS21/fonts.html#propdef-font-weight

If you had checked your code with a HTML validator or an online HTML
validation service and with a CSS validator, both errors (<script>
instead of <style> and text-weight) would have been reported.

Reading suggestions:

Using Web Standards in your Web Pages:Making your page using web
standards - how to
2.1 Where can I validate my webpages? How to validate webpages?
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages:Making_your_page_using_web_standards_-_how_to#Where_can_I_validate_my_webpages.3F_How_to_validate_webpages.3F

Using Web Standards in your Web Pages:Making your page using web
standards - how to
3.1 Where can I validate my CSS code?
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages:Making_your_page_using_web_standards_-_how_to#Where_can_I_validate_my_CSS_code.3F

Why we won't help you by Mark Pilgrim
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you

Regards, Gérard
--
Internet Explorer 7 bugs
http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация