Difference between revisions of "Template:PBR/doc"
m |
m |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Template:PBR is intended to give the outward appearance and effect of the BR tag with the exception that multiple uses of it will not cause multiple lines of whitespace. You use it everywhere you want a linebreak but don't want to have extra whitespace associated with linebreaks piling up. Essentially PBR is a conditional BR, if a BR is needed it works as a BR, if it's not needed it has no effect. It's the bees knees. | Template:PBR is intended to give the outward appearance and effect of the BR tag with the exception that multiple uses of it will not cause multiple lines of whitespace. You use it everywhere you want a linebreak but don't want to have extra whitespace associated with linebreaks piling up. Essentially PBR is a conditional BR, if a BR is needed it works as a BR, if it's not needed it has no effect. It's the bees knees. | ||
Unfortunately it is not a BR and you end up with having to fight off the evil P tag because of this. This can be gotten around by using a styled BR but IE 6&7 do not support [http://www.quirksmode.org/css/display.html display:table] (I'm sure this isn't what that modes was intended for but it works in FF). | |||
{| | {| |
Revision as of 20:33, 17 April 2009
Template:PBR is intended to give the outward appearance and effect of the BR tag with the exception that multiple uses of it will not cause multiple lines of whitespace. You use it everywhere you want a linebreak but don't want to have extra whitespace associated with linebreaks piling up. Essentially PBR is a conditional BR, if a BR is needed it works as a BR, if it's not needed it has no effect. It's the bees knees.
Unfortunately it is not a BR and you end up with having to fight off the evil P tag because of this. This can be gotten around by using a styled BR but IE 6&7 do not support display:table (I'm sure this isn't what that modes was intended for but it works in FF).
BR Tagtest |
PBR Inline
test
test
test
test test testtest test test |
PBR Templatetest
test
test |
BR Tag + Styletest |
Bold text