Thursday, January 3, 2008

Cross-browser compatibility

After designing my blog in Mozilla, I realized that it doesn't look good in Internet Explorer. What I can do is to include the following code in my head section.

<!--[if IE]>
<style type='text/css'>
#main-wrapper{
margin-left:20px;
}
#sidebar-wrapperR{
margin-right:20px;
}
#sidebar-wrapperL{
;
}
</style>
<![endif]-->

You can google with the search phrase "Cross-browser compatibility" for more help. One such good article can be found here.

No comments: