- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
If I have a text wrapped around say `
` could I add a style like class. `
` its because I am doing php work at same time and some times its easier to to small style on the php file
I have absolutely no idea what you’re talking about. I feel like some code is missing from your question. :)
It was…to put code inline, wrap it in ` characters
So this becomes ` this `
It worked what I was after.
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 {
text-align:center;
}
That’s much more in keeping, I think, with what I suspect you are trying to do.
had to do it in php this part it worked so far
but most of the others I do in css