Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Odd problem

  1. #1
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default Odd problem

    Hi im currently in the process of making IUS, ive been coding without a hitch until this little bugger of a problem popped up.
    Im stuffed because i dont have a clue why its like this.

    Problem


    Index code
    Code:
    <div id='container'>
    
    <div id='logo'></div>
    
    <div id='boxtop'></div>
    
    <div id='boxmid'>
    <form action='process.php' enctype='multipart/form-data' method='POST'>
    <input type='file' name='file' size='50' /><br /><br />
    <input type='submit' name='submit' value='upload' />
    </form>
    </div>
    
    <div id='boxbtm'></div>
    
    </div>
    CSS
    Code:
    #container {
    width: 550px;
    padding: 0;
    text-align: left;
    }
    
    #logo {
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    height: 80px;
    }
    
    #boxtop {
    background-image: url('../images/boxtop.png');
    background-repeat: no-repeat;
    height: 30px;
    }
    
    #boxmid {
    background-image: url('../images/boxmid.png');
    background-repeat: no-repeat;
    padding-left: 10px;
    }
    
    #boxbtm {
    background-image: url('../images/boxbtm.png');
    background-repeat: no-repeat;
    height: 30px;
    }
    
    input {
    border: 1px solid #004A7F;
    padding: 3px;
    font-family: trebuchet MS;
    font-size: 13px;
    color: #000000;
    }
    Thanks alot for reading
    - Luke
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  2. #2
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Are you sure you have the right image/image sizes sure you trimmed your images?
    How could this hapen to meeeeeeeeeeeeeee?lol.

  3. #3
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    The form is inside the boxmid div, the background should/is expanding but there is two gaps
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  4. #4
    Join Date
    Jul 2007
    Location
    Scotland
    Posts
    529
    Tokens
    0

    Default

    Add overflow: hidden; to boxmid.

  5. #5
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    Nothing happened
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  6. #6
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    try giving your divs 100% height.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  7. #7
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    Thats got rid of the top gap but the gap around the submit button is still there
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  8. #8
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Have a try with this:

    Code:
    #container {
    width: 550px;
    padding: 0;
    text-align: left;
    }
    
    #logo {
    position: relative;
    float: left;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    height: 80px;
    width: 550px;
    }
    
    #boxtop {
    position: relative;
    background-image: url('../images/boxtop.png');
    background-repeat: no-repeat;
    height: 30px;
    float: left;
    width: 550px;
    }
    
    #boxmid {
    position: relative;
    float: left;
    background-image: url('../images/boxmid.png');
    background-repeat: no-repeat;
    padding-left: 10px;
    overflow: hidden;
    width: 550px;
    }
    
    #boxbtm {
    position: relative;
    float: left;
    background-image: url('../images/boxbtm.png');
    background-repeat: no-repeat;
    height: 30px;
    width: 550px;
    }
    
    input {
    border: 1px solid #004A7F;
    padding: 3px;
    font-family: trebuchet MS;
    font-size: 13px;
    color: #000000;
    }

  9. #9
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    Nope, doesnt work. see what i mean? Bloody odd problem!
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  10. #10
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default

    Try..

    #boxmid {
    background-image: url('../images/boxmid.png');
    padding-left: 10px;
    }


Page 1 of 2 12 LastLast

Posting Permissions

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