I'd always use SPANs so they don't invalidate your HTML when being nested (a DIV inside a SPAN would be a violation). Consider this:jameskever wrote:I'm not sure when it's best to use span vs. div
Code: Select all
[color=#AAA][center]hey there guys[/center][/color]
<div align="center">{TEXT}</div>
, I'd always use <span style="display: block; text-align: center;">{TEXT}</span>
, which has way more chances to not invalidate your HTML.<div>
is nothing else than a <span style="display: block;">
.<span>
is nothing else than a <div style="display: inline;">
.<div>
is not allowed inside a <span>
, but the other way around is fine.b
, i
, u
and such are like span
and are also not allowing div
inside.Thanks for posting this information!AmigoJack wrote:I'd always use SPANs so they don't invalidate your HTML when being nested (a DIV inside a SPAN would be a violation). Consider this:jameskever wrote:I'm not sure when it's best to use span vs. divYou could say "hey, just put [center] outside and [color] inside, butCode: Select all
[color=#AAA][center]hey there guys[/center][/color]
I'd never define [center] as
- Who knows that? And those know: who is acting accordingly?
- There are situations where you can't reorder your BBCodes.
<div align="center">{TEXT}</div>
, I'd always use<span style="display: block; text-align: center;">{TEXT}</span>
, which has way more chances to not invalidate your HTML.
What most people don't know:
- A
<div>
is nothing else than a<span style="display: block;">
.- A
<span>
is nothing else than a<div style="display: inline;">
.- A
<div>
is not allowed inside a<span>
, but the other way around is fine.- Elements like
b
,i
,u
and such are likespan
and are also not allowingdiv
inside.
You didnt look hard enough then cause a page or 2 back I posted a very nice clean one that works wonderful.Christaras wrote:How can I get a hide tag on my forum. I searched everywhere but I didn't find a HTML to add this bbcode on my forum. Can anyone help me????
What HTML have you got?emcha wrote:I'm still having problems with center, right, left placing an interline in between two rows of line\
IE
This is what I'm writing that
I want to see to the left
Result
This is what I'm writing that
I want to see on the left
Placing spaces until the line changes or one right after the other instead of breaking the line, has no effect.
Code: Select all
<object data='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' type='application/x-shockwave-flash' width='622' height='350'><param value='false' name='menu'/><param value='transparent' name='wmode'/><param value='true' name='allowfullscreen'/><param value='server=rtmp://advdp4wvd2q7.rtmphost.com/domplayer&title=DOM Video Player&filename=mp4:/strategy/WhyYouShouldntSlowPlay_1Mb_002&autoplay=true' name='flashvars'/><param value='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' name='movie'/></object><p style="font-family:Arial,Helvetica,Geneva,sans-serif;font-size:11px;color:#404040;margin:2px 0;padding:0;"><a href="http://www.pokerlistings.com/tv/watch/pl-strategy-why-you-shouldnt-slow-play-942">PL Strategy: Why You Shouldn't Slow Play!</a> from <a href="http://www.pokerlistings.com/">PokerListings.com</a></p>
Code: Select all
<object data='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' type='application/x-shockwave-flash' width='622' height='350'><param value='false' name='menu'/><param value='transparent' name='wmode'/><param value='true' name='allowfullscreen'/><param value='server=rtmp://advdp4wvd2q7.rtmphost.com/domplayer&title=DOM Video Player&filename=mp4:/strategy/position_1Mb&autoplay=true' name='flashvars'/><param value='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' name='movie'/></object><p style="font-family:Arial,Helvetica,Geneva,sans-serif;font-size:11px;color:#404040;margin:2px 0;padding:0;"><a href="http://www.pokerlistings.com/tv/watch/pl-strategy-position-738">PL Strategy: Position</a> from <a href="http://www.pokerlistings.com/">PokerListings.com</a></p>
Based on the code you gave us, I don't think that you can do it with just the URL of the Web page; you need the file ID of the video. Here's what I came up with:KT1 wrote:What i am wanting to do is be able to put the url of each video in between theses tags
[pokerlisting][/pokerlisting]
each video on a new thread
Code: Select all
[poker={URL} {IDENTIFIER}]{TEXT}[/poker]
Code: Select all
<object data='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' type='application/x-shockwave-flash' width='622' height='350'><param value='false' name='menu'/><param value='transparent' name='wmode'/><param value='true' name='allowfullscreen'/><param value='server=rtmp://advdp4wvd2q7.rtmphost.com/domplayer&title=DOM Video Player&filename=mp4:/strategy/{IDENTIFIER}&autoplay=true' name='flashvars'/><param value='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' name='movie'/></object><p style="font-family:Arial,Helvetica,Geneva,sans-serif;font-size:11px;color:#404040;margin:2px 0;padding:0;"><a href="{URL}">{TEXT}</a> from <a href="http://www.pokerlistings.com/">PokerListings.com</a></p>
Code: Select all
Insert poker video: [poker=main-url video-file]title[/poker]
[poker]{IDENTIFIER}[/poker]
, I suspect, but giving credit is a good thing.