By the looks of it {he thinks} he knows what he’s doing.

WordPress CSS Comment

I was going in to edit the default WordPress CSS file and found this snippet that was very interesting:

/* Using ‘class=”alignright”‘ on an image will (who would’ve thought?!) align the image to the right. And using ‘class=”centered”‘, will of course center the image. This is much better than using align=”center”, being much more futureproof (and valid) */

It had never occured to me that there would be a need for this since I had always used the css align="center" attribute.

I guess it pays to look at someone else’s CSS file. :-)

Leave a comment for: "WordPress CSS Comment"

You must be logged in to post a comment.