Now I didn't touch your main2.css. That still uses float:right
to layout the form for FF/Chrome/Safari. My solution uses position:absolute
to layout the form in ie.css.
I think this is the simplest/quickest way to fix your web page for IE7+.
Personally, I would go back and refactor main2.css for more code consistency, you would probably end up with less code in ie.css that way (which is what I typically strive for).
I used absolute positioning, because I knew it would work. You could probably use relative positioning too. It would be tricky to use float positioning. I find using relative/absolute is easier to achieve cross-browser compatibility in some situations, but I could be wrong. I'm sure there are other ways to skin this cat too, maybe even better ones.
If you want any other tips or suggestions, or if the steps below don't 100% work for you, let me know. Your site looks awesome btw.
Starting with your latest version of index2.php, main2.css, and ie.css:
In index2.php
move <div id="form">
inside of:
div#container
In ie.css
get rid of:
#form { float:right; }
get rid of:
#container #bottom { clear: left; }
add:
#container #content { float:none; }
change:
#container #bottom { margin: 0; }
to:
#container #bottom { margin: 0 0 0 35px; }
add :
#container { position:relative; } /* this sets the parent element for the next line */
finally add:
#form { position:absolute; right:0; top:-15px; }
As you know, you still need to add your graphics back into the div#form
, and also put the top and bottom rounded graphics on the div#form
. If you have any problems and need help with that let me know. Hopefully the techniques about will help you finish it.