Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Why do embedded videos float in TXP articles?
I’m not sure why this is happening. It didn’t before, but all of the sudden, any YouTube embeds float (in Firefox only) and cover up the surrounding text, instead of remaining in their proper place.
Here’s a sample:
http://patrolmag.com/index.php?s=mixtape
It doesn’t seem to have anything to do with the form.
http://www.patrolmag.com
Offline
Re: Why do embedded videos float in TXP articles?
Maybe because of those 410 validation errors
In example, you don’t end your floating elements – they don’t just have ending tags. Another things is that video is inside span > p > p > emped > /span so where is all closing tags? Also span can’t contain any block elements as it’s inline element.
<!-- Here we float -->
<p class="floatstop"> <!-- That stops it - no it doesn't! It doesn't have closing tag! -->
<span class="body">
<p>Testing video players here….</p>
<p> <!--- Another non-closed tag -->
<p class="floatstop"></p>
<p>
<object width="230" height="180">
<param></param>
<emped></emped>
</object>
</p>
</span> <!-- Here comes span -->
<span class="more">COMMENTS</span>
<hr color="#CCCCCC" size="1"> <!-- And rest of page's content is inside hr, interesting... -->
<BR> <!-- And then it's inside br - i like this styling... -->
Cheers!
Last edited by Gocom (2008-01-28 06:39:49)
Offline
Re: Why do embedded videos float in TXP articles?
I removed all the unclosed tags I can find, and the problem persists. It only happens, interestingly, once every few times the page is loaded.
Last edited by davidsess (2008-01-28 16:29:50)
http://www.patrolmag.com
Offline
#4 2008-01-29 07:00:27
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Why do embedded videos float in TXP articles?
I too would fix all validation errors, then could be sure that they are not causing the float. It’s impossible to say what is causing it when there is so much errors which all can affect to it.
Offline