Grow your CSS skills. Land your dream job.

Multiple Pages, 1 CSS File

  • # March 21, 2013 at 11:35 am

    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.

    # March 21, 2013 at 11:35 am

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

    # March 21, 2013 at 11:46 am

    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 }

    # March 21, 2013 at 11:58 am

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

    # March 21, 2013 at 12:05 pm

    > Oops sorry I was thinking of another user.

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

    # March 21, 2013 at 12:05 pm

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

    lol

    # March 21, 2013 at 12:11 pm

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

    # March 21, 2013 at 12:19 pm

    naw the block didnt work..

    # March 21, 2013 at 12:20 pm

    @hannon33, try giving `.mp3` a width in the css too.

    # March 21, 2013 at 12:23 pm

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

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

    # March 21, 2013 at 12:24 pm

    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

    # March 21, 2013 at 12:39 pm

    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.

    # March 21, 2013 at 12:44 pm

    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 `

    # March 21, 2013 at 12:52 pm

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

    ``

    might work

    # March 21, 2013 at 12:56 pm

    You are correct!

Viewing 15 posts - 31 through 45 (of 78 total)

You must be logged in to reply to this topic.

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