Grow your CSS skills. Land your dream job.

Tag HTML in CSS

  • # August 8, 2009 at 12:05 am

    Hi all,

    i have a problem with tag html in css. the case is like this :

    Code:
    /* This will be save as design.css */
    p {
    color: #cccccc;
    }

    then, i create a html page like this:

    Code:

    Life doesn’t last forever

    So we have to help each other, and live life to the fullest

    The problem is: i want the include file color is i.e. #aaaaaa not using the css i defined.

    Any related reply is so appreciated.. :)

    # August 8, 2009 at 1:00 am

    Give it a class.

    Code:

    Life doesn’t last forever

    So we have to help each other, and live life to the fullest

    Code:
    p {
    color: #cccccc;
    }

    p.whatever {
    color: #aaa;
    }

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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