2 tilqicom Mar 03, 2011 22:29

Sorry (twice) - here's a link: http://wccoa.org/index.php/Home/news/ - this post has both bold and italic parts of it, but they don't show up on the front end.
Ethan5150 wrote:
this post has both bold and italic parts
no it doesnt.view the source code and see for youself.
no it doesnt.view the source code and see for youself.
The source does indeed reveal <strong> and <em> tags that aren't showing up as bold or italic when viewing the post.
On top of style.css (http://wccoa.org/skins/chita/style.css?v=4.0.3) styles are reset
/*browser resets and grids*/
This is a well known technique with this side-effect that you need to redefine both <strong> and <italc> by adding something like
p em {
font-weight: bold;
}
p i {
font-style: italc;
}
You can do that in several ways depending on flavor and education (as is the decision to reset the style at the top of the stylesheet) so I leave details to you.
yea, i have missed it. but why strong, what's wrong with <b></b> if all you want is to make the text bold ?
yea, i have missed it. but why strong, what's wrong with <b></b> if all you want is to make the text bold ?
Nothing's wrong with it. Except when an average non-html type person clicks on the Bold button in the TinyMCE editor... it uses the <strong> tag instead. ;)
BushLeagueCritic wrote:
yea, i have missed it. but why strong, what's wrong with <b></b> if all you want is to make the text bold ?
Nothing's wrong with it. Except when an average non-html type person clicks on the Bold button in the TinyMCE editor... it uses the <strong> tag instead. ;)
so in an ideal world the stupid TinyMCE would insert <b></b> instead of <strong>.
I dont know for sure, which is right, but using <b> for bold text sounds more right semantically.strong and em should be used for additional purposes.
...and what about Italic? Currently it's being denoted as <em> (bottom paragraph) which isn't displaying as italic.
Should I do as Afwas suggested and drop
/*browser resets and grids*/
p em {
font-weight: bold;
}
p i {
font-style: italic;
}
into the css? Tilqicom, I know this skin is pretty complex, will this mess anything else up? There's a lot of browser resets in there already... does this just go in there with the rest?
I would suggest:
/*browser resets and grids*/
p em {
font-style: italic;
}
p strong {
font-weight: bold;
}
Unless the <strong> and <em> tags are being styled somewhere else in the skin's CSS, there should be no problem.
Ok, well it's updated and looks good. I'll just cross my fingers it doesn't break something else. Thanks everyone!
a link would help.
and next time, instead of creating new topic for such minor issues, would you please report to the skin's support thread ?