views:

59

answers:

2

If i I'm not using any transparent png, not using :hover on other thank a:link,

Is it possible to make cross browser layout without having any IE conditional CSS .and keep main css valid?

I want to keep only one css file for whole needs. screen, print, handheld.

What things we should consider?

+1  A: 

Sure. The main thing I do to work on this is to test the CSS files incrementally in multiple browsers as I build the site. It's much harder to make a site look correct in multiple browsers once it is completely built out for a single browser.

Element widths are the biggest problem since different browsers calculate the widths differently.

David
how to deal with elements width for cross browser compatibility
metal-gear-solid
If you're using a strict doctype widths of elements shouldn't be trouble (especially IE7+)
Ryan Doherty
@Ryan Doherty - I'm using XHTML 1.1
metal-gear-solid
@metal-gear-solid - Then you don't need to worry about both IE and validity. You can't validly serve XHTML 1.1 as text/html and you can't get IE to render the page if you don't serve your page as text/html.
Alohci
@Alohci - "You can't validly serve XHTML 1.1 as text/html" why?
metal-gear-solid
@metal-gear-solid - It's not permitted by the XHTML 1.1 spec. It takes a stricter line to serving it using an XML mime type than XHTML 1.0 did. There have been proposals to change this, but many people are opposed to it, so no such proposal has made it to W3C recommendation.
Alohci
A: 

Yes, just use one column.

For more complicated designs, I guess it depends on the design and the exact browser requirements.

jeroen