I know that div has an implied carriage return before & after, while span does not, but what else is different? Or is it simply the web browsers not properly functioning? For example, I want to put a border around a table, so I figured just to this:
around the table. However, the results are unpredictable in latest version of IE, there is no padding, and depending on the border configurations, different sides are visible and others do not appear.
Swapping in DIV instead of SPAN makes this work correctly.
So is this just IE not conforming to css standards? I'll work around this, but just am curious.
Code:
<span style="border:1px solid black;padding:5px;"></span>
around the table. However, the results are unpredictable in latest version of IE, there is no padding, and depending on the border configurations, different sides are visible and others do not appear.
Swapping in DIV instead of SPAN makes this work correctly.
So is this just IE not conforming to css standards? I'll work around this, but just am curious.