MyBB Community Forums

Full Version: please do away with presentation junk in the html!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
<span style="smalltext"> <-- There's like hundreds of them, please get rid Smile
(2012-04-12, 04:31 PM)Zenk Wrote: [ -> ]<span style="smalltext"> <-- There's like hundreds of them, please get rid Smile

Without these the text it's used for will be much bigger than it should be.
(2012-04-12, 04:31 PM)Zenk Wrote: [ -> ]<span style="smalltext"> <-- There's like hundreds of them, please get rid Smile

How else do you style an element, without <style> tags or the style="" attribute?
(2012-04-12, 05:10 PM)darkhorus Wrote: [ -> ]
(2012-04-12, 04:31 PM)Zenk Wrote: [ -> ]<span style="smalltext"> <-- There's like hundreds of them, please get rid Smile

Without these the text it's used for will be much bigger than it should be.

The problem is that they're used in places they shouldn't be, namely .tcat cells. Absolutely unnecessary.
(2012-04-13, 12:30 AM)Scoutie44 Wrote: [ -> ]
(2012-04-12, 05:10 PM)darkhorus Wrote: [ -> ]
(2012-04-12, 04:31 PM)Zenk Wrote: [ -> ]<span style="smalltext"> <-- There's like hundreds of them, please get rid Smile

Without these the text it's used for will be much bigger than it should be.

The problem is that they're used in places they shouldn't be, namely .tcat cells. Absolutely unnecessary.

Yeah that's true too.
(2012-04-13, 12:27 AM)Josh H. Wrote: [ -> ]
(2012-04-12, 04:31 PM)Zenk Wrote: [ -> ]<span style="smalltext"> <-- There's like hundreds of them, please get rid Smile

How else do you style an element, without <style> tags or the style="" attribute?

By styling the parent (div or w/e)?
Without styling everything else, too, I think he means.
(2012-04-08, 10:32 AM)darkhorus Wrote: [ -> ]<strong> and <em> are necessary if you want to make certain parts of a text bolded or italicized, but not the whole text. If you define bold and italic in the css class for that text then the WHOLE text will be bolded and italicized, but if you only want certain parts of the text bolded and italicized, you should use <strong> and <em> on those parts.

That's not a problem, if you want bold text without semantic meaning, just use something like span style around the parts you want bold.
(2012-04-15, 03:18 PM)ekerazha Wrote: [ -> ]
(2012-04-08, 10:32 AM)darkhorus Wrote: [ -> ]<strong> and <em> are necessary if you want to make certain parts of a text bolded or italicized, but not the whole text. If you define bold and italic in the css class for that text then the WHOLE text will be bolded and italicized, but if you only want certain parts of the text bolded and italicized, you should use <strong> and <em> on those parts.

That's not a problem, if you want bold text without semantic meaning, just use something like span style around the parts you want bold.

What difference does it make between using <span style="font-weight: bold">text</span> & <strong>text</strong> Toungue
Semantics...

Basically strong is supposed to show that text is important.(and screen readers and other assistant programs should read it this way.) While just styling it bold means the text is supposed to just look bold for look purposes and isn't really more important than anything else on the page.
Pages: 1 2 3 4 5 6 7