AlfieWebDevTips Homefor new and experienced developers
[Home Home] [Web Development Web Development ] [Code Generators Code Generators ] [Resources Resources ] [Contact Us Contact ] |WebDevTips Privacy Privacy |
Print This Page

You are here : Home - Resources - FAQ - CSS Q2

FAQ - CSS Q2



Q2:My style works ok in one browser but breaks in another - why?

A:Take a look at this

.somestyle { 
background-color : pink; 
color:white; 
border-bottom : 1px solid black;
border-left : 1px solid black
border-top : 1px solid black;
border-right : 1px solid black;
}

While the above may work ok in most browsers in others it might not. The problem lies in the line border-left : 1px solid black There is no ; to finish the rule - some people will tell you it's not important - ignore them :)

If your style breaks in browser x make that the first thing you check - always finish with a ;


back to faq




Google
 

[back to top of page]   

[labelled with icra -  - this link will open in a new window] [RSS Content]

[Copyright © WebDevTips]