Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2007
    Location
    Kent, United Kingdom
    Posts
    67
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Cross Browser CSS Problem

    Hey, I have a website im developing for a client, yet the CSS I am using to create a rounded div doesn't stretch like it does in firefox, can you help me out?

    Home.php:
    PHP Code:
       <div class="container">
        <
    class="rtop"><class="r1"></b> <class="r2"></b> <class="r3"></b> <class="r4"></b></b>
         <
    div class="fixer">&nbsp;
         </
    div>
        <
    class="rbottom"><class="r4"></b> <class="r3"></b> <class="r2"></b> <class="r1"></b></b>
       </
    div
    style.css:
    PHP Code:
    body{
     
    background-color#959492;
     
    font-faceveranda;
     
    font-familyverdana;
    }
    .
    container {
     
    background#79d867; 
     
    color#736f6e;
     
    width75%;
     
    overflowauto;
     
    text-aligncenter;
     
    font-faceveranda;
     
    font-familyverdana;
    }
    .
    rtop, .rbottom{
     
    display:block;
     
    background#959492;
    }
    .
    rtop *, .rbottom *{
     
    displayblock;
     
    height1px;
     
    overflowhidden;
     
    background#79d867;
    }
    .
    r1{margin0 5px}
    .
    r2{margin0 3px}
    .
    r3{margin0 2px}
    .
    r4{
     
    margin0 1px;
     
    height2px
    }
    .
    fixer{
     
    width75%;
     
    height97%;
    }
    .
    content{
     
    top27%;
     
    left25%;
     
    width55%;
     
    height57%;
     
    positionabsolute;
     
    overflowauto;
     
    font-faceveranda;
     
    font-familyverdana;
     
    color#736f6e;


  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <meta name="" content="authored by http://nopeople.com/Design" />
    <style type="text/css">
    body{ 
     background-color: #959492; 
     font-face: veranda; 
     font-family: verdana; 
    } 
    .container { 
     background: #79d867;  
     color: #736f6e; 
     width: 75%; 
     overflow: auto; 
     text-align: center; 
     font-face: veranda; 
     font-family: verdana; 
    } 
    .rtop, .rbottom{ 
     display:block; 
     background: #959492; 
    } 
    .rtop *, .rbottom *{ 
     display: block; 
     height: 1px; 
     overflow: hidden; 
     background: #79d867; 
    } 
    .r1{margin: 0 5px} 
    .r2{margin: 0 3px} 
    .r3{margin: 0 2px} 
    .r4{ 
     margin: 0 1px; 
     height: 2px 
    } 
    .content{ 
     height: 97%; 
    } 
    
    </style>
    </head>
    <body><div class="container"> 
        <b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b> 
         <div class="content">
        <p>
            Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna 
            aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no 
            sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
            nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo 
            duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
        </p> 
        <p>
            Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna 
            aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no 
            sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
            nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo 
            duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
        </p>
        <p>
            Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna 
            aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no 
            sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
            nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo 
            duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
        </p>
         <!--end .content--></div> 
        <b class="rbottom"><b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b></b> 
       </div>  
    </body>
    </html>
    That works in IE6, IE7 and FF2... I'm still studying it to see what makes the corners.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Nov 2007
    Location
    Kent, United Kingdom
    Posts
    67
    Thanks
    6
    Thanked 2 Times in 2 Posts
    ahh.
    you see it WORKS.
    but not the way i want it to work, i wish to make the container (hence .fixer) always be a specific size not Dependent on the amount of content in container.

    Do you understand what i am trying to achieve?

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Not sure, ...what happens when you just put
    Code:
    .content{ 
     height: 200px; 
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    New Coder
    Join Date
    Nov 2007
    Location
    Kent, United Kingdom
    Posts
    67
    Thanks
    6
    Thanked 2 Times in 2 Posts
    WTF!??!?! i want it to stay the same height..... as in firefox.


  •  

    Posting Permissions

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