Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wrapping style inside an IFRAME

    Hi Everyone!

    Got another question. How do I control how the content of IFRAME tag is wrapped, if there is only text in it?

    Thanks a lot!

  • #2
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Modify the coding inside the page that is actually displayed in the iframe. If you are showing someone elses page there isn't a whole lot you can do. If it is yours and you can modify your code, put the text in a div and then set it's width to whatever desired.

    Code:
    <html>
    <head>
    <style type="text/css">
    #my_div
    {
    width:200px
    }
    </style>
    </head>
    <body>
    <div id="my_div">
    My text goes here and it will go out 200 pixels before wrapping.
    </div>
    </body>
    </html>
    Basscyst
    Helping to build a bigger box. - Adam Matthews


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •