A small but useful change in 2.3

I’ve just pushed through some new code into the 2.3 branch which will make development a little easier.

Currently to add padding to the base grid you need to add an extra div element with a class called ‘box’ which adds 10px of padding:

<div class=”span-12″>
<div class=”box”>
<p>
Lorem ipsum dolor…
</p>
</div>
</div>

Now though you can just add the box class into the column div:

<div class=”span-12 box”>
<p>
Lorem ipsum dolor…
</p>
</div>

Of course you’re still free to use box divs as before if you wish and 2.3 will retain backwards compatability. As of writing this change breaks IE6 rendering epically however I’ll come up with a fix shortly.

Right up to the release of 2.3 we’ll continue to make little changes like this to make development with the CWD as easy as possible.

Leave a Reply

Your email address will not be published.