37 users online (1 members and 36 guests)  


  Results 1 to 3 of 3

Related

  1. PHP Code Formatting and Design    Forum: PHP Forum
    Replies: 4
  2. formatting text with PHP    Forum: HTML Forum
    Replies: 1
  3. help in formatting a query    Forum: PHP Forum
    Replies: 1
  4. Formatting Dates    Forum: HTML Forum
    Replies: 2
  5. Formatting with Html    Forum: HTML Forum
    Replies: 4
  1. #1
    Timinator2000's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    2

    Formatting in an IFRAME

    Hello everyone.. Not sure if this is where I should be posting this but here goes..
    I am creating a website wich has a couple of Iframes.. I purchase a billing script and am trying to integrate it into my site.. I am calling this script in one of the iframes on my main page and in IE7, it works great.. IE6 though is all screwed up.. looks like the script is putting itself in an iframe within my iframe using only half of the iframe..
    There is a CSS with this script:
    Code:
    * {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    }
    body {
    margin: 0;
    padding: 0;
    color: #000;
    background-color: #fff;
    }
    #container {
    margin: 0;
    }
    #header {
    height: 62px;
    background-image: url('images/hbg.jpg');
    padding-top: 5px;
    padding-left: 15px
    }
    #nav {
    float: left;
    width: 160px;
    margin: 0px;
    margin-left: 10px;
    padding-top: 1em;
    }
    #content {
    padding-top: 1em;
    margin: 0 2em 0 190px;
    }
    * html #content {
    overflow-x: auto; overflow-y: hidden; 
    width: expression(document.body.offsetWidth - 220);
    }
    #footer {
    clear: both;
    padding: 1em;
    text-align: right;
    }
    form {
    margin: 0px;
    }
    fieldset {
    padding-left: 7px;
    padding-right: 7px;
    }
    #nav h1, #loginform h1, .heading h1, #content h1 {
    font-weight: bold;
    background-color: #B93435;
    background-image: url('images/bg.gif');
    width: 145px;
    height: 22px;
    color: #FFFFFF;
    padding-left: 5px;
    padding-bottom: 2px;
    padding-top: 5px;
    margin-bottom: 5px;
    margin-top: 10px; margin-left:0px; margin-right:0px
    }
    a, a:link, a:visited, a:active, a:hover {
    color: #890405;
    }
    a:hover {
    color: #B93435;
    }
    #nav a {
    color: #000000;
    text-decoration: none;
    padding-left: 15px;
    }
    #nav a:link, #nav a:visited, #nav a:active, #nav a:hover {
    color: #000000;
    text-decoration: none;
    }
    #nav a:hover {
    color: #B93435; 
    }
    .error {
    color: red;
    }
    .screenborder {
    border: 1px solid #C0C0C0;
    padding: 5px;
    }
    I've played around with
    Code:
    * html #content {
    overflow-x: auto; overflow-y: hidden; 
    width: expression(document.body.offsetWidth - 220);
    }
    and am able to mask the problem but it causes other problems in other sections of my script..

    Any ideas?

    Thanks.T
    Last edited by vinyl-junkie; 06-18-2007 at 11:33 AM. Reason: Added code tags

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: Formatting in an IFRAME

    Post a link to the page you're working with. I can't help you myself since I don't have IE6, but perhaps someone else will be able to.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more

  3. #3
    darkdirk1's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    5

    Re: Formatting in an IFRAME

    I can't help but to point out - this is not a coherent description:
    "looks like the script is putting itself in an iframe within my iframe using only half of the iframe.. "

    In the css you posted - which class are you assigning to the iframe *or to it's container?



    With such little information I will take a wild stab in the dark at the problem...
    Wrap you iframe in a <table><tr><td></td></tr></table>

    IE loves tables so very very much.



Tags for this Thread