MyBB Community Forums

Full Version: Allowed HTML Tags
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2008-09-19, 01:39 PM)Matt_ Wrote: [ -> ]AFAIK, <b> just got phased out, like <center> had been replaced with <div align="center">.

WoW. That's so old. Using <div align="center"> is wrong Toungue
Only a few months ago I was told <center> was old and to use <div align="center"> Confused
<center> is old. <div align="center"> is middle ages, and <span style="text-align: center;"> is new. Styling is the preferred way because they're trying to get all style tags and actual structure tags separated (CSS vs XHTML)
Ahhhh ok, is it possible to put, say, centre and bold in the same tag?? Just to make it a bit easier.
yeh <span style="text-align: center; font-weight: bold;">
You also can't align block elements with just a span tag, it won't work.

EG:

<span style="text-align:center"><div>blah</div></span>

Won't work, even with the div being a certain width lower than 100%.
You cannot nest block-level elements within inline elements. <div> should never be inside <span>.

People still use <center> and <div align="center"> because they work. It is hard to have a centered block element whose textual contents are left-aligned in a manner that works in both Firefox and Internet Explorer. Hopefully IE 8 will fix that.
Pages: 1 2