Results 1 to 3 of 3

Thread: scrollable iframe positioning in table

  1. #1
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default scrollable iframe positioning in table

    im using the scrollable iframe script in a table within my website. i load all my subpages in that iframe. i just need to make a slight adjustment on where the subpage is displayed within the table (in the iframe).. i cant figure out how to move it to the correct position. here is my website http://www.ikonmusic.net ...now if you go there and click on the 'Biography" link, for example, youll notice that the text does not load inside the cartoon bubble graphic, which is my goal here. what part of the code do i have to insert/adjust to achieve my goal? ive tried inserting leftmargin="?" inside the <iframe> tag but nothing happened.
    Last edited by ikon; 07-03-2005 at 05:43 AM.

  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

    Relative positioning should do the trick but, you've got another problem. In Mozilla (Firefox and probably many other browsers based on Mozilla) I can scroll the content in the iframe by clicking on it and using either the mouse wheel or the up/down keys. In IE6 I just can't get it to scroll. Anyways, try this to position it:
    Code:
    <iframe name="ikon" id="datamain" style="position:relative;left:-25px;top:-35px;" src="http://ikonmusic.net/index2.html" marginheight="0" marginwidth="0" hspace="0" vspace="0" allowtransparency="true" frameborder="0" height="100" scrolling="no" width="250"></iframe>
    Those are negative values moving it to the left (reducing its distance from the left) and top (reducing its distance from the top). Adjust as needed. About the scrolling, I see you've removed the scrolling controls that come with this script. I'd think about putting them back. You could replace the text with small images resembling arrows or just use small triangles one pointing up, one down.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    got it thanks...and i added those scroll buttons

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
  •