I’m having a strange issue with the positioning of a youtube videobar in the the right sidebar, but it only seems to be happening on Chrome and Safari. When one of the video thumbnails in the bar is clicked, it’s supposed to open a player video beside it, but in Chrome and Safari the player video opens elsewhere on the page. It appears to work fine in Firefox and IE7 (only other browsers I’ve been able to test it in so far).
Any help would be appreciated. I spent 8 hours trying to figure this out yesterday to no avail.
Hi, the google code is inserting the youtube video outisde of any nested elements, and then coordinates are set (top/left) only a few hunderd pixels away…so it’s a few hundred pixels away from the top of the screen. In chrome anyway
This isn’t a CSS question though, this should be moved to the JS section. I’ll ask for a move.
Thanks, Ryan, but couldn’t it still be something with a CSS fix? It’s weird because when I test insert the code in a basically blank page with just a big floated right block of text and the styled videobar to the left in a div wrapper, the player appears correctly beside it when clicked – by correctly I mean it doesn’t appear near the top of the browser window but directly beside the bar.
I think that since the page has such complicated content, the google code is breaking somewhat? I’m not quite sure as I don’t do JS, but all I know is that the JS values outputted for top/left are different from FF to Chrome. Thus I think JS. I think it worked on a simpler page because of the simpler structure/content
Not from what I saw, the values were just different, and they were generated via JS