The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Class Question Re: CSS Class Question


I’ve edited the OP for the code to show up.

>If I have a text wrapped around say `

` could I add a style like class. `


There’s a couple of things wrong with the above question.

It’s unlikely that you would wrap text **around** an h2 tag.

Next, this `style=”text-align: center”` is not a class…it’s inline CSS.

You could do this `

` and then, in your css sheet

.text-center {

That’s much more in keeping, I think, with what I suspect you are trying to do.