Grow your CSS skills. Land your dream job.

Multiple Pages, 1 CSS File

  • # March 20, 2013 at 6:27 pm

    http://learn.shayhowe.com/html-css/

    Everything you need to know.

    # March 20, 2013 at 8:09 pm

    i have also embeded a song into the website,

    how do i center this in the middle of the page using CSS? i tried what i thought but it did not seem to work

    # March 21, 2013 at 12:24 am

    @hannon33 – please use the Code button when entering code into your post. Simply select the code that you’ve typed (or pasted) and then click the ‘Code’ button (it’s right beside ‘Quote’).

    # March 21, 2013 at 4:20 am

    > i have also embeded a song into the website,

    Please don’t.

    # March 21, 2013 at 5:06 am

    hannon33, you dear poor soul… You’re taking an online course to learn HTML and CSS? Why in the world would you do that? There are plenty of websites that you can learn this stuff from for free! I am sure we can all give you some links to such resources.

    Here are a few:

    http://www.webmonkey.com/

    http://w3schools.com/

    http://www.html.net/

    Please, don’t jump ahead of yourself!

    This:

    .index {
    body
    margin-left:auto;
    margin-right:auto;
    width: 400px;
    background: gray;
    }

    Should be this:

    body.index {
    margin-left:auto;
    margin-right:auto;
    width: 400px;
    background: gray;
    }

    or

    /* Body Styles */

    .index {
    margin-left:auto;
    margin-right:auto;
    width: 400px;
    background: gray;
    }

    # March 21, 2013 at 5:10 am

    Also, just to point this out as a helpful gesture… Don’t use auto margins like this and please use the hexidecimal code for the color you want to use. If you are going to set the margins and use color, set them like this:

    .index {
    margin: 0 auto;
    width: 400px;
    background: #CCC;
    }

    # March 21, 2013 at 5:55 am

    > http://w3schools.com/

    In before ranting! I learned html and css here since it has a really easy, almost linear learning curve (not even sure what that means). However many consider it a bad resource, I think mainly because of [this](http://w3fools.com/). I still don’t regret using w3schools, though they should look at w3fools and fix where they are wrong… can’t be any easier than that.

    # March 21, 2013 at 6:03 am

    > http://w3schools.com/

    Please don’t recommand W3Schools. Reason given by Dillon.

    # March 21, 2013 at 9:06 am

    Please don’t overlook the link I provided in my earlier post. It’s by far the most comprehensive guide out there.

    # March 21, 2013 at 9:12 am

    >Please don’t overlook the link I provided in my earlier post. It’s by far the most comprehensive guide out there.

    Enough self-promotion, thank you!

    Other than that…nice site.

    # March 21, 2013 at 9:27 am

    I have zero affiliation with that site.

    I’m only here to help.

    # March 21, 2013 at 9:41 am

    .title2 {
    text-align: center;
    font-size:30px;
    }

    whats wrong with code like this?

    # March 21, 2013 at 9:51 am

    Technically there’s nothing wrong with the code.

    But you left out the context. Where in the HTML are you using the class of `.title2`?

    # March 21, 2013 at 10:29 am

    Oops sorry I was thinking of another user.

    Apologies.

    # March 21, 2013 at 11:11 am

    No worries Paulie.

Viewing 15 posts - 16 through 30 (of 78 total)

You must be logged in to reply to this topic.

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