/    Sign up×
Community /Pin to ProfileBookmark

HTML5/CSS doesn’t display correctly in IE7

I’m building a small website for a business. I’m not that well trained in coding. I use the web to troubleshoot often. I have found one error of display only in IE7 that is driving me nutz…lol !!! I’m utilizing HTML5 for rounded corners and shading…

I’m using a “container” div with 3 columns and a footer of course…I float left on the first…float right on the second…and then content for the center…displays just fine in all browsers aside from IE7…the “content” drops halfway down the page? I’ve used the “clear” function and “display” to no success?

Any ideas for this problem would be greatly appreciated !!!

#container2 {
overflow: hidden;
background-color:#fff;
margin-left:auto;
margin-right:auto;
height:auto;
width:960px;
clear:all;
}

#leftside {
float:left;
margin:10px 10px 10px 10px;
width:145px;
border-style:solid;
border-width:1px;
border-color:#d7d7ff;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
-khtml-border-radius: 15px;
border-radius: 15px;
}

#rightside {
float:right;
margin:10px 10px 10px 10px;
width:145px;
border-style:solid;
border-width:1px;
border-color:#d7d7ff;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
-khtml-border-radius: 15px;
border-radius: 15px;
}

#content {
overflow:hidden;
width:620px;
margin:10px 170px 10px 170px;
border-style:solid;
border-width:1px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
-khtml-border-radius: 15px;
border-radius: 15px;
border-color:#d7d7ff;
}

#footer {
clear:both;
background-color:#FFF;
height:auto;
width:960px;
margin-left:auto;
margin-right:auto;
text-align:center;
border-style:solid;
border-width:1px;
border-color:#d7d7ff;
border-bottom-color:#006;
}

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@spufiApr 12.2012 — Are you handling the fact that IE has issues with HTML 5?

<i>
</i>&lt;!--[if lt IE 9]&gt;
&lt;script src="//html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;


This would be a good start.
Copy linkTweet thisAlerts:
@pcwoesauthorApr 12.2012 — That's in the Head correct?
Copy linkTweet thisAlerts:
@spufiApr 12.2012 — Yes.
Copy linkTweet thisAlerts:
@pcwoesauthorApr 12.2012 — I added that but no luck...I just reduced my content div by 10px and that solved it !!! I guess IE7 had trouble calculating 1:1 on the fit !? Thanks for quick reply...
Copy linkTweet thisAlerts:
@spufiApr 12.2012 — You'll likely want to google "HTML 5 IE7" for issues as you come along them as well. My guess is most issues are simply related to IE7 though. ?
×

Success!

Help @pcwoes 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...