Grow your CSS skills. Land your dream job.

CSS Class Question

  • # June 21, 2013 at 3:22 am

    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

    # June 21, 2013 at 3:34 am

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

    # June 21, 2013 at 4:30 am

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

    So this becomes ` this `

    # June 21, 2013 at 4:31 am

    It worked what I was after.

    # June 21, 2013 at 4:34 am

    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.

    # June 21, 2013 at 9:28 am

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".