Forums

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

Home Forums CSS Multiple Pages, 1 CSS File

  • This topic is empty.
Viewing 15 posts - 16 through 30 (of 75 total)
  • Author
    Posts
  • #129067
    Alen
    Participant

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

    Everything you need to know.

    #129077
    hannon33
    Member

    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

    #129114
    TheDoc
    Member

    @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’).

    #129122
    Kitty Giraudel
    Participant

    > i have also embeded a song into the website,

    Please don’t.

    #129126
    rpotterjr
    Participant

    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;
    }

    #129127
    rpotterjr
    Participant

    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;
    }

    #129132
    CrocoDillon
    Participant

    > 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.

    #128796
    Kitty Giraudel
    Participant

    > http://w3schools.com/

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

    #129151
    Alen
    Participant

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

    #129152
    Paulie_D
    Member

    >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.

    #129153
    Alen
    Participant

    I have zero affiliation with that site.

    I’m only here to help.

    #129155
    hannon33
    Member

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

    whats wrong with code like this?

    #129156
    Alen
    Participant

    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`?

    #129162
    Paulie_D
    Member

    Oops sorry I was thinking of another user.

    Apologies.

    #129172
    Alen
    Participant

    No worries Paulie.

Viewing 15 posts - 16 through 30 (of 75 total)
  • The forum ‘CSS’ is closed to new topics and replies.