Search code examples
xhtmlbold

<strong> doesnt work, but <b> does


I don't make anything particular. I use Safari, and when I use <strong>blabla</strong> it doesn't work, but <b>blbla</b> does. any idea about what can be the reason?

Regards...

I use Yahoo Reset.css, if it may cause the problem.


sample code:

<p><strong>Address:</strong> bla bla bla blaabllb</p> 

Solution

  • Yes, the Yahoo! CSS reset removes formatting from STRONG tags (as well as all other tags).

    You'll need to explicitly declare the formatting as noted in the other answers...

    strong { font-weight: bold; }
    

    The Firefox plugin Firebug will let you right-click on an element and say "Inspect Element", which among other things displays what CSS has been applied to that element and from what stylesheet that CSS comes. Very helpful for running down what's causing an issue like this.