Question

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> 
Was it helpful?

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.

OTHER TIPS

Yahoo's reset.css has this:

address,caption,cite,code,dfn,em,strong,th,var { 
    font-style:normal; 
    font-weight:normal; 
} 

This indeed means that it won't be bold.

It can be that the browser has somehow lost default settings for the "strong" element.

Try to make it "recall" by specifying it explicitly in your CSS:

strong
{
    font-weight: bold;
}

You shouldn't use the tags "strong" and "b" to achieve just bold text. Instead use stylesheets to make text appear bold and only use strong if you want to emphasize something. You can also use stylesheets to make strong appear bold in safari.

Well it all depends on what the CSS is doing.

strong {
    font-weight:bold;
}

will make it appear bold. Some browsers will have that set as a default CSS rule, others might not. Have you set anything that says explicitly that strong or <b> will result in bold text?

Generally you shouldn't rely on the browsers to style elements on their own. For example, Safari might say:

strong {
    font-weight:bold;
    font-size: 1.2em;
}

while Firefox may have:

strong {
    font-weight:bold;
    color: #000000;
    font-size: 18px;
}

or something like that. So when different users view your page, it may or may not look the same.

Investigate reset.css files (maybe here) and think about telling the browser WHAT you want it to look like via CSS.

Do you have strong declared in your css file? if you have a declaration:

strong{}

then nothing will happen.

You need to have:

strong{
font-weight:bold;
font-style: italic;
}

<strong> is a semantic element used to emphasize the enclosed text, while <b> (though "deprecated") is more of a typographic convention.

strong {font-weight:bold}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top