The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] You Tube object styling not working in WebKit.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #29903

    I have a problem with a youtube object which uses on a website I’m building. The site is here, at the bottom of the page is the insurance section. Part of that area is a youtube video which should have a top margin of 10 px and a left margin of 20px. This is the case in Firefox but in opera, safari and chrome it doesnt seem to be working.

    The styleing for that section is in the ../css/mainIndex.css file.

    Would anybody be able to shed light as to why these browsers don’t seem to like this.

    Any help would be appreciated


    I’m not sure why webkit browsers don’t recognize it, but you should be able to apply the styling to the tag around it and that should work across all browsers.

    Also, be careful of line 11 of your css “#insurance p, embed”. That’s not the same as “#insurance p, #insurance embed”.


    Thanks Noah I applied margin-left:20px and margin-top:10px to the object tag and it worked in Safari.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.