getting gap in between the divs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • musaligari
    New Member
    • Mar 2008
    • 3

    getting gap in between the divs

    hi all,

    when i am using div tags, i am getting gaps between the divs. please refer the code which i have written. please find free to help me out.


    /*************** **** CSS *************** ************/
    [code=css]
    body{
    margin:0px;
    width:100%;
    background:#000 000;
    }
    #wrapper{
    width:1003px;
    height:100px;
    margin:0 auto;
    }
    #maintable{
    width:993px;
    margin:5px 5px 0px 5px;
    }
    #lft{
    background:url( ../images/lftcurve_top.gi f) no-repeat;
    float:left;
    width:19px;
    height:13px;
    }
    #topbg{
    background:url( ../images/topbg_curve.gif ) repeat-x;
    width:955px;
    float:left;
    height:13px;
    }
    #rgt{
    background:url( ../images/rgtcurve_top.gi f) no-repeat;
    float:right;
    width:19px;
    height:13px;
    }
    #lftimg{
    background:url( ../images/lftimg.gif) no-repeat;
    float:left;
    width:3px;
    height:543px;
    }
    #bdybg{
    background:url( ../images/bdybg.gif) repeat-x;
    width:987px;
    float:left;
    height:600px;
    }
    #rgtimg{
    background:url( ../images/rgtimg.gif) no-repeat;
    float:right;
    width:3px;
    height:543px;
    }[/code]
    /*************** *************** CSS Ends *************** ****/


    /*************** *********** html ***************/[html]
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="includes/scripts/style.css" rel="stylesheet " type="text/css" />
    <title>Wivo</title>
    </head>
    <body>
    <div id="wrapper">
    <div id="maintable" >
    <div id="lft"></div>
    <div id="topbg"></div>
    <div id="rgt"></div>
    <div id="lftimg"></div>
    <div id="bdybg"></div>
    <div id="rgtimg"></div>
    </div>


    </div>
    </body>
    </html>
    [/html]
    /*************** *********** html ends ***************/

    regards,
    suren
    Last edited by drhowarddrfine; Mar 20 '08, 06:18 PM. Reason: Please use code tags
  • manvel
    New Member
    • Mar 2008
    • 2

    #2
    [html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitl ed Document</title>
    <style type="text/css">

    body{
    margin:0px;
    width:100%;
    background:#000 000;
    }
    #wrapper{
    width:1003px;
    height:100px;
    margin:0 auto;
    }
    #maintable{
    width:993px;
    margin:5px 5px 0px 5px;
    }
    #lft{
    background:url( ../images/lftcurve_top.gi f) no-repeat;
    float:left;
    width:19px;
    height:13px;
    background-color:#CCFF99;
    }
    #topbg{
    background:url( ../images/topbg_curve.gif ) repeat-x;
    width:955px;
    float:left;
    height:13px;
    background-color: #FF6699;
    }
    #rgt{
    background:url( ../images/rgtcurve_top.gi f) no-repeat;
    float:right;
    width:19px;
    height:13px;
    background-color: #66CCFF;
    }
    #lftimg{
    background:url( ../images/lftimg.gif) no-repeat;
    float:left;
    width:3px;
    height:543px;
    background-color: #CC9900;
    }
    #bdybg{
    background:url( ../images/bdybg.gif) repeat-x;
    width:987px;
    float:left;
    height:600px;
    background-color: #999933;
    clear:right;
    }
    #rgtimg{
    background:url( ../images/rgtimg.gif) no-repeat;
    float:left;
    width:3px;
    height:543px;
    background-color: #CC99FF;
    clear:right;
    }

    </style>
    </head>

    <body>

    <div id="wrapper">
    <div id="maintable" >
    <div id="lft">1</div>
    <div id="topbg">2222 2</div>
    <div id="rgt">3</div>
    <div id="lftimg">4</div>
    <div id="bdybg">5555 5</div>
    <div id="rgtimg">6</div>
    </div>
    </div>

    </body>
    </html>[/html]
    Last edited by drhowarddrfine; Mar 21 '08, 12:40 PM. Reason: Please use code tags

    Comment

    Working...