View Single Post
Old 03-20-2009, 12:39 AM   #31 (permalink)
Krik
The Contributor
 
Join Date: Feb 2009
Posts: 65
Thanks: 0
Krik is on a distinguished road
Default

If the style is inline yes
HTML Code:
<div class="divstyle" style="width: 200px;height: 20px;width: 75px;border: #CCCCCC 1px solid;float:left;">Name</div>
If you run that in Firefox open the "Error Console" and you will see it will throw 4 errors.

When it is used up in the <style> tag it will not error but I still recommend the spaces first just for the continuity and second readability is big big deal in coding.

And of course I tested in just Firefox who knows how the other browsers will react. And since I did get an error in one instance of not using spaces it means there is a potential for errors to occur with other browsers in any style usage if you don't put spaces in. Whereas on the contrary having too many space is not going to cause any errors in CSS.
Krik is offline  
Reply With Quote