View Full Version : spacing between divs

02-17-2012, 11:04 PM

Please have a look at this site: http://www.shahspace.com/bow/home.html

As you can see, I have two div colored pink and some space between them and around them. I'd like to get rid of all spacing but I can't.

Here's the code:



<title>The Bow Tower</title>


background: url('content_bg.jpg');
background-repeat: repeat-x;

width: 230px;
height: 100%;
background-color: #ffaaaa;
float: left;
padding: 0;
margin: 0;

width: 250px;
height: 100%;
background-color: #ffaaaa;
padding: 0;
margin: 0;

font-size: 18pt;
font-family: verdana;
font-weight: bold;




<div id="textdiv">
The Bow Tower<br>
<li><a href="services.html">Services</a></li>
<li><a href="information.html">Information</a></li>
<li><a href="health_safety.html">Health and Safety</a>
<li><a href="index.html">Index</a>

<div id="imgdiv"><img align=right src="bow tower.jpg" border=0></div>



What can I do to get rid of the spacing (I'm working in IE9).

02-17-2012, 11:17 PM

Will it work to add "float:left;" to the imagediv?



02-18-2012, 12:06 AM
Yes, that worked. Also added margin: 0 to body.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum