I'm a newbie to CSS and am trying to learn how to efficiently use CSS. I was wondering when and how you use DIV and SPAN as it seems that they are used quite abit.
Thanks.Ideally you do not use them at all... see my rant for more info:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=30383While">http://forums.webdeveloper.com/showthre ... 30383While</a><!-- m --> I agree with Vladdy, the world ain't ideal so...
<div> is a generic block level element
<span> is a generic inline element
They are used for grouping, generally to apply certain styles to the things they contain.<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=28527">http://forums.webdeveloper.com/showthre ... adid=28527</a><!-- m -->
Thanks.Ideally you do not use them at all... see my rant for more info:
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=30383While">http://forums.webdeveloper.com/showthre ... 30383While</a><!-- m --> I agree with Vladdy, the world ain't ideal so...
<div> is a generic block level element
<span> is a generic inline element
They are used for grouping, generally to apply certain styles to the things they contain.<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=28527">http://forums.webdeveloper.com/showthre ... adid=28527</a><!-- m -->