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

Home Forums CSS Adding Margin to an iframe Widget

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

    I am trying to add 40 pixels of margin on all sides of an iframe. Here is my page. Currently, my iframes have a bit of code to pull it all the way over to the edge on my front page. I want to add the little Kickstarter widget on my Feel Good Candy page, which is also an iframe, but the way the widget is designed by Kickstarter, no matter what I try, I can’t add margin or padding. Any suggestions? Thank you in advance!

    Here is the code for the iframe:

    Edit: Hopefully, I am not missing something glaringly simple.


    You want to add margin to the content inside the iframe? which would be the kick-starter widget?


    add the margin to the iframe container – .floatLeft (a terrible name btw)


    Two things:

    1) I don’t see that margin under .floatLeft in your css

    2) Kickstarters code can’t override that margin without using greater specificity, which it hasn’t

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