473,395 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 ***************************/
Expand|Select|Wrap|Line Numbers
  1. body{
  2.     margin:0px;
  3.     width:100%;
  4.     background:#000000;
  5.     }
  6. #wrapper{
  7.     width:1003px;
  8.     height:100px;
  9.     margin:0 auto;
  10.     }
  11. #maintable{
  12.     width:993px;
  13.     margin:5px 5px 0px 5px;
  14.     }
  15. #lft{
  16.     background:url(../images/lftcurve_top.gif) no-repeat;
  17.     float:left;
  18.     width:19px;
  19.     height:13px;
  20.     }
  21. #topbg{
  22.     background:url(../images/topbg_curve.gif) repeat-x;
  23.     width:955px;
  24.     float:left;
  25.     height:13px;
  26.     }
  27. #rgt{
  28.     background:url(../images/rgtcurve_top.gif) no-repeat;
  29.     float:right;
  30.     width:19px;
  31.     height:13px;
  32.     }
  33. #lftimg{
  34.     background:url(../images/lftimg.gif) no-repeat;
  35.     float:left;
  36.     width:3px;
  37.     height:543px;
  38.     }
  39. #bdybg{
  40.     background:url(../images/bdybg.gif) repeat-x;
  41.     width:987px;
  42.     float:left;
  43.     height:600px;
  44.     }
  45. #rgtimg{
  46.     background:url(../images/rgtimg.gif) no-repeat;
  47.     float:right;
  48.     width:3px;
  49.     height:543px;
  50.     }
/****************************** CSS Ends *******************/


/************************** html ***************/[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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
Mar 20 '08 #1
1 1486
manvel
2
[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">

body{
margin:0px;
width:100%;
background:#000000;
}
#wrapper{
width:1003px;
height:100px;
margin:0 auto;
}
#maintable{
width:993px;
margin:5px 5px 0px 5px;
}
#lft{
background:url(../images/lftcurve_top.gif) 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.gif) 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">22222</div>
<div id="rgt">3</div>
<div id="lftimg">4</div>
<div id="bdybg">55555</div>
<div id="rgtimg">6</div>
</div>
</div>

</body>
</html>[/html]
Mar 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
1
by: tabert | last post by:
I want to use JavaScript when a button is clicked to show and hide a SPAN or DIV. This works in both IE and Netscape, but what I'd like to happen is for there to be no white space where the hidden...
2
by: tasman.hayes | last post by:
I'm experimenting with converting a site from a table layout to CSS. I'm floating three DIVs in a row for the top of a website (a logo, navigation buttons and a email list signup box). The DIVs...
8
by: maroger | last post by:
I'm sure this is a common issue, but I haven't come across anything that works for me thusfar. I am trying to fix my header, which works fine in firefox but has extra space in IE. Here are...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.