Treehouse: Grow your CSS skills. Land your dream job.

help on css please

  • # December 22, 2012 at 5:13 pm

    i made index page with css. and want to build another page like portfolio. and want to change totally then index. so how can i make that possible in one css. i hope u got the problem. plz help me out..

    cheers mate..

    # December 22, 2012 at 5:16 pm

    @r2jeff This is what I got from the above paragraph:

    You have an index page that you styled with css. You want to create another page, called “Portfolio” but would like it to be different from the index page, correct?

    If so, use classes in your HTML to style them differently.

    # December 23, 2012 at 8:51 am

    thanks for that mate.. in the same css.. but i can i remove all those style from index. m quite confused bro.. can u give me your email add so i can send you then u will get my actually problem…please..

    # December 23, 2012 at 8:56 am

    @r2jeff You can message me here but I encourage you to post your issue in case anyone else runs into the same problem.

    # December 23, 2012 at 11:11 am

    You could try to use a class on the body tag like body class=”portfolio” then add the class portfolio to the existing styles.


    h1 {existing styles}
    .portfolio h1 {portfolio specific styles}

    # December 23, 2012 at 11:36 am

    @r2jeff, have your CSS in separate file and link to it in each html page in head section like so:

    and than do as @chrisburton suggested. Develop classes to change appearance or behavior of HTML tags (elements). There’s no need to overqualify element like .portfolio h1, .portfolio will suffice.

    # December 23, 2012 at 12:03 pm

    thanks for advice guys.. let me try…

    # December 23, 2012 at 12:09 pm

    yahooooo…. appreciate thanks once again all of you… cheers guys… i will make a link when i finished it.

    hava good x-mas…

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

You must be logged in to reply to this topic.