Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default Iframe help needed

    Well I want to know how to make an Iframe examdble in this layout I coded a while ago for kyle
    http://www.shanes.pcriot.com/1.html Is the layout
    I want the main content area to be expandble.

    I put no height and width in for the body , the css I used for the content div is :
    HTML Code:
    #content {
    background-color: #FFFFFF;
    position: absolute;
    left: 145px;
    top: 110px;
    width: 80%;
    border: 1px solid #000000;
    padding: 2px;
    }
    And the Iframe code i used is:
    HTML Code:
    <iframe src="main.html" name="content" WIDTH="100%" HEIGHT="100%" frameborder=0></iframe>
    What am I doing wrong?

  2. #2
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    erm.. i think u need to use the dynamicdrive iframe expanding script...

    www.dynamicdrive.com

    its on there somewhere
    Coming and going...
    Highers are getting the better of me

  3. #3
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    Hmm, is there any boxes left/right of your iframe?

    100% means stretch across the hole page.

  4. #4
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    Hmm, is there any boxes left/right of your iframe?

    100% means stretch across the whole page.

  5. #5
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by Cj555 View Post
    erm.. i think u need to use the dynamicdrive iframe expanding script...

    www.dynamicdrive.com

    its on there somewhere
    Link please

    Quote Originally Posted by iTechnical View Post
    Hmm, is there any boxes left/right of your iframe?

    100% means stretch across the hole page.
    Yep theres a div on the left , but the iframe is placed inside a div so woulded the 100% mean 100% of the div?

  6. #6
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by --ss--2 View Post
    Link please


    Yep theres a div on the left , but the iframe is placed inside a div so woulded the 100% mean 100% of the div?
    No, 100% in css would be to stretch across the whole page
    i.e
    HTML Code:
    <style type="text/css>
    body {
    height: 100%;
    width: 100%;
    background-color: hexhere;
    Last edited by iTechnical; 11-11-2007 at 01:20 PM.

  7. #7
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by iTechnical View Post
    No, 100% in css would be to stretch across the whole page
    i.e
    HTML Code:
    <style type="text/css>
    body {
    height: 100%;
    width: 100%;
    background-color: hexhere;
    ooo ok , How should i make it so the div width will change accordingly to peoples resolution? If I make it to fit a certain resolution perfectly there would either be a large empty space on the side or will make the page scroll
    http://www.shanes.pcriot.com/style.css Is all the css I'm using

  8. #8
    Join Date
    Oct 2006
    Location
    London
    Posts
    555
    Tokens
    0

    Default

    http://www.dynamicdrive.com/dynamicindex17/indexb.html

    Few iframe ones there
    hope they help
    CPU: INTEL C2D E6600 | MOBO: ABIT P35-E | GFX: Palit 7900GS OC 256MB | RAM: 2x1GB Geil 900MHZ | PSU: RAWPOWER 600W | COOLING: 2X120MM 1X80MM | HDD 120GB TOTAL

  9. #9
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by Leeroy View Post
    http://www.dynamicdrive.com/dynamicindex17/indexb.html

    Few iframe ones there
    hope they help
    What one do I need to solve my problem though? :eusa_whis

Posting Permissions

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