Home > CSS (Page 2)

CSS Box model comparison in IE and FF

What is the box model?A HTML element is rendered as a rectangle box. The box has attributes viz. width, padding, height, margin and border.The HTML element is rendered differently in different browsers.For example:[crayon-6768cd3db4cf9031308262/]Guess the computed width of the div.60em80emBoth are correct answers. How?IE: Trident (layout engine for IE) renders the

This Article is TAGGED in , , . Read more

IE-8 Border Radius

How to use border radius for IE-8?HTMLWe can use the ie-css3 file which is a .htc(HTML Component file) file. Just put the file in root folder and can be used as follows: div { height: 100px; width: 100px; -webkit-border-radius: 10px ; -moz-border-radius: 10px ; border-radius: 10px ; behavior: url('ie-css3.htc'); background-color: #0072AE; background: #0072ae; /* Old browsers */ }  Note: Please

This Article is TAGGED in , , , , , . Read more