/    Sign up×
Community /Pin to ProfileBookmark

Problem with White Space between Div tags in IE but not FF, Please Help

Hello all, I hope someone can help me with my small box I am making in CSS. My problem is that between my div tags there is a white space in IE, but not FF. If I try to change the margins to close this gap in IE it throws off Firefox. I have tried setting margins padding and borders, but have run out of ideas. Thanks for looking!

Code below link here: [URL=”http://anthonybidulka.com/HELP/testbox.htm”]http://anthonybidulka.com/HELP/testbox.htm[/URL]

[CODE]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
border: 0;
}

p {
font-size: smaller;
color: white;
font-style: normal;
font-family: Arial, Helvetica, sans-serif;
margin: 0px; /* This fixed spaces added by P in firefox, still remains in IE */
}
.box {
width: 56%;
margin: 0;
padding: 0;
border: 0;
}
.box-content {
margin:0;
padding-left: 18px;
padding-right: 18px;
}
.box-middleleft {
background: url(ml.png) repeat-y left;
margin-right:14px;
margin-top: 0px;
margin-bottom: 0px;
}
.box-middleright {
background: url(mr.png) repeat-y right;
margin-right:-14px;
}
.box-topleft {
background: url(tl.png) no-repeat top left;
margin-right:14px;
}
.box-topright {
height:10px;
background: url(tr.png) no-repeat top right;
margin-right:-14px;
}
.box-bottomleft {
background: url(bl.png) no-repeat bottom left;
margin-right:14px;
}
.box-bottomright { background: url(br.png) no-repeat bottom right;
margin-right:-14px;
height: 14px;
}
</style>
</head>
<body>
<div class=”box”>
<div class=”box-topleft”><div class=”box-topright”></div></div>
<div class=”box-middleleft”><div class=”box-middleright”><div class=”box-content”>
<p>Like his protagonist, Anthony lives a big life in a small city on the Canadian prairie. He also loves to travel the world&mdash;meeting people, sampling food and wine, walking sun-drenched streets, making good use of swim-up bars, and being awed. </p>
<p>Anthony has toured extensively in both Canada and the United States including stops in Ottawa, Toronto, Winnipeg, Regina, Saskatoon, Calgary, Edmonton, Vancouver, Victoria, Los Angeles, San Francisco, Sacramento, New York, New Orleans, Ann Arbor, Madison, Chicago, Minneapolis, Atlanta, Baltimore, Dallas, Austin, San Antonio, Houston and Washington, DC.&nbsp; </p>
<p>Anthony lives in Saskatoon where he is at work on his next novel.</p>
</div></div></div>
<div class=”box-bottomleft”>
<div class=”box-bottomright”>
</div>
</div>
</div>
</body>
</html>[/CODE]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@CoyotelabOct 30.2008 — I will try something like this:
[CODE].box-two { width:160px; background: url(images/side_2_bg.gif) center repeat-y; overflow: hidden;}

.box-two .inside { padding: 0 10px;}

.box-two-top { width:160px; height:17px; background: url(images/side_2_top.gif) center no-repeat; }

.box-two-bottom { width:160px; height:16px; background: url(images/side_2_bot.gif) center no-repeat; }[/CODE]

[code=html]<div class="box-two">
<div class="box-two-top"></div>
<div class="inside">

text

</div>
<div class="box-two-bottom"></div>
</div>[/code]

or conditional statement for ie6
[code=html]<!--[if IE 6]>

<link rel="stylesheet" type="text/css" media="screen, print, projection" href="css/ie6.css"></link>

<![endif]-->
[/code]
Copy linkTweet thisAlerts:
@catskinOct 30.2008 — Hi, IE7 works fine. Are you refering to IE6?
Copy linkTweet thisAlerts:
@greengloauthorOct 30.2008 — Yes sorry, I meant IE6. Had two IE6 windows open rather than 6 and 7. I will try to tweak for IE6 since 7 is working.
×

Success!

Help @greenglo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...