- This topic is empty.
-
AuthorPosts
-
March 21, 2013 at 11:35 am #129182
hannon33
Memberoh 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 #129183hannon33
Member.morocco {
background-image:url(“moroccobackground.jpg”);
background-repeat:no-repeat;
background-size:2000px 1000px;March 21, 2013 at 11:46 am #129185hannon33
MemberMarch 21, 2013 at 11:58 am #129187Paulie_D
MemberTry adding `display:block` to your .mp3 class.
March 21, 2013 at 12:05 pm #129189chrisburton
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.
March 21, 2013 at 12:11 pm #129195Paulie_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.
March 21, 2013 at 12:19 pm #129198hannon33
Membernaw the block didnt work..
March 21, 2013 at 12:23 pm #129203Paulie_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.
March 21, 2013 at 12:24 pm #129204hannon33
Memberim 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 #129212Paulie_D
MemberCan 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 #129213hannon33
Memberi 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 #129216Paulie_D
MemberI 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 #129217TheDoc
MemberYou are correct!
March 21, 2013 at 1:04 pm #129220Paulie_D
MemberAlso, I think with the audio element you have to set a MIME type, which will help the browser identify the media correctly.
March 21, 2013 at 1:04 pm #129221rpotterjr
ParticipantI 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.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.