Results 1 to 6 of 6

Thread: Iframe distance from left,right,top, or bottom

  1. #1
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe distance from left,right,top, or bottom

    How can you specify how far an iframe should be from the lfet,right,top, ot bottom?
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It depends. First off, generally you shouldn't. You should just allow it to be wherever it will fall in the normal flow of the page, or at the most float it using css style. If you must 'stick it somewhere' you can use any of the normal methods for doing so, like putting it in a table or setting its position to absolute or relative and then using top and/or left coordinates.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    but what if I have a form in the middle of the screen, and I want it on the left side of it?
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  4. #4
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Are you using tables to arrange your page? That's the best way to get your page fully aligned and positioned to your liking.
    http://webmonkey.wired.com/webmonkey/96/47/index3a.html

  5. #5
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh, thanks. and when you do border="0", it doesn't look stupid and unprofessional
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You should be able to do it without a table. I always need to experiment when it comes to this though. I'd first try floating the iframe left. Then, if that didn't do what I wanted add in float right to the form. There are only the two elements and only four possibilities for float: left, right, clear and none. So it shouldn't take too long to get what you are looking for. The advantage of not using a table is that your layout is visible without horizontal scrollbars at any resolution, at any window width as wide as your largest element. With tables you add element widths together in the columns so more screen real estate is needed to display without horizontal scrolling.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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