Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-28 05:41:26

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

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

#2 2008-01-28 06:39:09

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#3 2008-01-28 06:41:58

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

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

Board footer

Powered by FluxBB