Forums

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

Home Forums CSS CSS Class Question

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #45719

    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

    #139691
    Kitty Giraudel
    Participant

    I have absolutely no idea what you’re talking about. I feel like some code is missing from your question. :)

    #136382
    Paulie_D
    Member

    It was…to put code inline, wrap it in ` characters

    So this becomes ` this `

    #136383

    It worked what I was after.

    #136384
    Paulie_D
    Member

    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.

    #139737

    had to do it in php this part it worked so far

    but most of the others I do in css

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.