WordPress.org

Ready to get started?Download WordPress

Forums

How to wrap text around iframe object (8 posts)

  1. Mr_Christopher
    Member
    Posted 2 years ago #

    I have ads within some of my posts, they are iframe objects <iframe src="http://...</iframe> I can use DIV commands to make the object align left, center or right but I can't figure out how to make the test wrap around or up to the object. How do I accomplish this? Thank you
    Chris

  2. peredur
    Member
    Posted 2 years ago #

    Float whatever contains the iFrame?

    Cheers

    PAE

  3. iamidiot
    Member
    Posted 1 year ago #

    I'm having the same issue as Mr Christopher. What does "Float" mean in this sense?

    Ben

  4. birgire
    Member
    Posted 1 year ago #

    try

    <iframe src="http://..." style="float:left;margin:10px;"></iframe>
  5. iamidiot
    Member
    Posted 1 year ago #

    Thanks!

  6. iamidiot
    Member
    Posted 1 year ago #

  7. birgire
    Member
    Posted 1 year ago #

    great, if you need more control over the margins:

    <iframe src="http://..." style="float:left;margin:10px 20px 10px 0px;"></iframe>

    where the margin order is: top left bottom right.

  8. birgire
    Member
    Posted 1 year ago #

    another way is to use the class attribute, fx:

    <iframe src="http://..." class="myiframe"></iframe>

    and add the following line in your style.css file:

    .myiframe{float:left;margin:10px 20px 10px 0px;"}

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags