How do I add padding around an iframe

4 replies
  • WEB DESIGN
  • |
Hello all,

How do I add padding around an iframe? Not within the iframe, but external. My text is wrapping too closely around the iframe picture.

Thanks!
#add #iframe #padding
  • Profile picture of the author Ambius
    put the iframe inside of a padded div?
    {{ DiscussionBoard.errors[3060235].message }}
  • Profile picture of the author dialseo
    Code:
    <div style="padding:15px;">
     <iframe> 
    </div>
    {{ DiscussionBoard.errors[3060286].message }}
    • Profile picture of the author rusel
      Apply in CSS
      padding: 20 px;

      you get border through your I-frame.
      {{ DiscussionBoard.errors[3061236].message }}
  • Profile picture of the author infoman66
    Or simple use hspace and vspace in iframe tag (like in img tag) if you not familiar with css and div:
    Code:
    <iframesrc="" name="" hspace="10" vspace="10"></iframe>
    {{ DiscussionBoard.errors[3061791].message }}

Trending Topics