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 - 31 through 45 (of 75 total)
  • Author
    Posts
  • #129182
    hannon33
    Member

    oh the title2 is one of the titles in the page, code worked though.. outcome is what i was going for..

    i am getting this error though:

    URI : mystyle.css
    87 * Parse Error */ .morocco { background-image:url(“moroccobackground.jpg”); background-repeat:no-repeat; background-size:2000px 1000px; }

    my code:
    .morocco {
    background-image:url(“moroccobackground.jpg”);
    background-repeat:no-repeat;
    background-size:2000px 1000px;

    every other page is working fine and im following the same syntax.

    #129183
    hannon33
    Member

    .morocco {
    background-image:url(“moroccobackground.jpg”);
    background-repeat:no-repeat;
    background-size:2000px 1000px;

    #129185
    hannon33
    Member

    nvm, it fixed itself…somehow…

    one thing which is aggrivating me is I cannot get my mp3 player centered on the page.


    CSS:

    .mp3 {
    text-align: center;
    margin-left: auto;
    margin-right: auto }

    #129187
    Paulie_D
    Member

    Try adding `display:block` to your .mp3 class.

    #129189
    chrisburton
    Participant

    > Oops sorry I was thinking of another user.

    He’s writing up a post now and will be posting it here soon, I bet.

    #129195
    Paulie_D
    Member

    >He’s writing up a post now and will be posting it here soon, I bet.

    You might think that…I couldn’t possibly comment.

    #129198
    hannon33
    Member

    naw the block didnt work..

    #129203
    Paulie_D
    Member

    >**naw the block didnt work..**

    It did when I tested it in Codepen so perhaps there is something else affecting /over-riding it.

    #129204
    hannon33
    Member

    im putting that aside for now.. tryna fix errors the validation shows me.. it says no space between attributes so i remove the space and put it ; and it just messes up everything

    #129212
    Paulie_D
    Member

    Can you give us a link to a live site…we’re kind of working in the dark here.

    >tryna

    Please..we don’t ask much but some semblance of proper English would be nice.

    #129213
    hannon33
    Member

    i just messed around and got it all cleaned up.. no more errors in validation.

    now im back to centering that mp3… is it better to use `

    .mp3 {
    display:block
    align: center;
    width: 200px;
    margin-left: auto;
    margin-right: auto }

    i like the look of `

    #129216
    Paulie_D
    Member

    I could be wrong but align isn’t a CSS property (AFAIK) but rather an attribute so

    ``

    might work

    #129217
    TheDoc
    Member

    You are correct!

    #129220
    Paulie_D
    Member

    Also, I think with the audio element you have to set a MIME type, which will help the browser identify the media correctly.

    http://html5doctor.com/html5-audio-the-state-of-play/

    #129221
    rpotterjr
    Participant

    I agree, I shouldn’t have suggested w3schools, my bad. However, I would still look into the other two I posted and as Dillon said, I would definitely take a long walk-through ccs-tricks, because there is a lot here that will be helpful in your learning experience. Chris has a very awesome way of explaining things and contributes a lot to the industry.

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