I'm recently new to CSS, at least what formating layouts is concerned. At this moment I'm trying to make a site that will ask the use of CSS for layout.
The site is temporarly in http://www.knowatedge.com/albergue
I have a DIV tag that houses a layout slices made in fireworks. For now I'm only trying to center it on the browser but I get stucked with the differences between IE and Firefox (I use mostly the last one).
I tried to use this solution:
but it doesn't work.
I made some experiments, and the result is this:
margin: 0 auto;
I don't want to make two versions of the site, one for IE and other for FF.
Do you know of a way to bond these two codes, so that one version works for both browsers?
For both, CSS code was validated!
Thanks for your time!
<?xml version="1.0" encoding="iso-8859-1"?>
Take that out. It puts IE in quirks (broken box model) mode, ie, it acts like IE5. Without it, both IE6+ and Firefox should behave the same.
Thanks Tyssen, it
Thanks Tyssen, it worked.
It's one of those things that i couldn't imagine... but I'm used to these sort of things on other programming stuff :blushing: