Help - Search - Members - Calendar
Full Version: Cross browser coding?
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
razbus
Does anyone have any tips for creating webpages (xanga, specifically) which are the SAME in Firefox and IE? Because, it seems like no matter what i do, something is allways a few pixels off. ermm.gif
YourSuperior
Like if your blog is slightly mis aligned in ie but perfect in firefox, just do this:

Say for instance your blog div looked like this:

CODE
<style type='text/css'>
.blogspace {
position: static;
margin-left: -600px;
}
</style>


And it was perfect in firefox but off in Internet Explorer. Just add !important after margin left and the number of pixels. And then add ANOTHER margin left for Internet Explorer. See, Internet Explorer doesn't recognize the !important field. So when that is placed behind the first margin left, Internet Explorer won't recognize it. So That's why you have to have 2 margin lefts. Once you've added another margin left, use it to align your blog in Internet Explorer. So in the end, it would look like this:

CODE
<style type='text/css'>
.blogspace {
position: static;
margin-left: -600px !important;
margin-left: -603px;
}
</style>
razbus
Wow. Thanks a lot!
YourSuperior
^You're welcome. If you ever need some more help, just simply PM me. _smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.