Recent Topics

Using CSS picture alignment styles in a post?

Started by on Mar 07, 2005 – Contents updated: Mar 07, 2005

Mar 07, 2005 20:06    

My stylesheet has styles for aligning images to the left or right. Can I use these in my blog posts? And if so, how? Maybe I'm typing the code wrong but everytime I try to use the img.alignleft tag I get a parser error. Any help would be much appreciated.

Mar 07, 2005 20:37

That's not a tag.

You need to do it like this:

<img src="whatever.jpg" class="alignleft" />

the . means a class that gets this style when used within a img tag.

Mar 07, 2005 21:10

Thanks for a speedy reply. Much appreciated.


Form is loading...

Social CMS software – This forum is powered by b2evolution CMS, a complete engine for your website.