HTML5 and CSS3: How can I make sure my code is compatible with all browsers?

Whenever I work with web design, each browser displays something else that destroys the layout. Are there any tools or recommendations for creating web design without any problems?

Thanks in advance!

+4
source share
6 answers

There are many different tools and technologies that can help make this better / easier, but nothing compares to the old old cross-browser testing. Here are some tools you might like:

+2
source

I do not think that all projects should look the same in all browsers. This is almost impossible with a growing range of browsers and devices that should be supported, but I understand that things should not break.

This may require case by case, but some things to learn:

+1
source

Apparently, you need to customize the design for each particular type of browser.

0
source

Using a CSS framework like http://twitter.github.com/bootstrap/ or http://documentcloud.github.com/backbone/ can certainly help with this process.

0
source

If you start with CSS reset (here's another one ) or some HTML template , you can at least reduce most of the weirdness with different browsers.

0
source

Grab Modernizr for a start, which uses selectivizr . I believe!

For Lee, I would use

li{ display: inline-block; //NO Floats *display: inline; /* < target IE7 */ *zoom:1; } 

Duplicate fields: fix those that have IE conditional style sheet OR html5boilerplate

Most other elements will depend on the type of display

For CSS3, maybe use CSSPie

Cleans:

 :after{ content: '.'; clear:both; visibility: hidden; *zoom:1; height:0; display:block; } 

Some other problems are fixed quite easily!

For screen width use% instead of PX for more control

0
source

Source: https://habr.com/ru/post/1399880/


All Articles