Tyler Crompton
Tyler Crompton

Reputation: 12672

Browser-compatibility with IE 7 and below

Surely there is an easier way of doing this. The IE comment tags were the only way I could make the page look right in IE 7 and below.

EDIT: I'm not too sure why this got down-voted. It's a legitimate question. If anyone should get down-voted, it's those who have discussed this as of now. Nobody is answering the question. They are either too vague or telling me what not to do. I already know that. That is why I am asking what the better way is.

Upvotes: 0

Views: 166

Answers (1)

shanethehat
shanethehat

Reputation: 15580

You shouldn't need to use an html table just to get IE7 working, and in fact you shouldn't use them at all if you're not intending to display tabular data.

Instead of all those messy conditions, just use one immediately after your stylesheet import to add an IE specific stylesheet.

Consider creating another container for your form, and instead of trying to make the form display as table use positioning to place your new container in the corner instead. This is more likely to translate well into older versions of IE, and so your IE specific styles will only be needed to correct minor box model differences.

Upvotes: 4

Related Questions