The codes can be found here:
http://www.w3schools.com/css/tryit.asp?filename=trycss_float_elements
&l
In that link the css width is overriding the html width attribute. this is what happens when you assign multiple property to same element. higher priority value will override the lower priority. class selector have higher priority then tag selector.