- This topic is empty.
-
AuthorPosts
-
March 20, 2013 at 6:27 pm #129067
Alen
Participanthttp://learn.shayhowe.com/html-css/
Everything you need to know.
March 20, 2013 at 8:09 pm #129077hannon33
Memberi 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 #129114TheDoc
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’).
March 21, 2013 at 4:20 am #129122Kitty Giraudel
Participant> i have also embeded a song into the website,
Please don’t.
March 21, 2013 at 5:06 am #129126rpotterjr
Participanthannon33, 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:
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 #129127rpotterjr
ParticipantAlso, 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 #129132CrocoDillon
ParticipantIn 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 #128796Kitty Giraudel
ParticipantPlease don’t recommand W3Schools. Reason given by Dillon.
March 21, 2013 at 9:06 am #129151Alen
ParticipantPlease 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 #129152Paulie_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.
March 21, 2013 at 9:27 am #129153Alen
ParticipantI have zero affiliation with that site.
I’m only here to help.
March 21, 2013 at 9:41 am #129155hannon33
Member.title2 {
text-align: center;
font-size:30px;
}whats wrong with code like this?
March 21, 2013 at 9:51 am #129156Alen
ParticipantTechnically 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 #129162Paulie_D
MemberOops sorry I was thinking of another user.
Apologies.
March 21, 2013 at 11:11 am #129172Alen
ParticipantNo worries Paulie.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.