Need Someone to Check my CSS

Discussion in 'CSS' started by dclary, Aug 29, 2010.

  1. #1
    I am a student and learning the basics of CSS, I think I am gaining a handle on it but would appreciate if someone could check my work before I submit it. If something is wrong, please point me in the right direction with an explanation on what I am doing wrong. Thank you in advance for any help :) Here is my completed assignment (instructions are in blue and my answers are in green):

    Activity 1: Create a style sheet rule for the paragraph tag that defines it as the color blue.

    p
    {color:#618CED;
    }


    Activity 2: Create a single style sheet rule from the following rules by grouping:
    • P {font-size: 12pt},
    • TD {font-size: 12pt}, and
    • blockquote {font-size: 12pt}.


    p,td,blockquote
    {
    font-size: 12pt
    }


    Activity 3: Create one semicolon separated list from the three rules listed below:
    • H1 {color: green},
    • H1 {text-align: center}, and
    • H1 {font-weight: bold}.


    h1
    {color: green; text-align: center; font-weight: bold;
    }



    Activity 4: Add an embedded style sheet to an HTML document that contains style sheet rules for a paragraph that is 12pt type size, and green in color, as well as a level 2 heading that is font weight bold and font size of 14pt.


    <html>
    <head>
    <title></title>
    <style type=”text/css”>
    <! --p {font-size: 12pt; color:green}
    h2 {font-size: 14pt; font-weight:bold --!>
    </style>
    </head>
    <body><p style>This paragraph is green color at 12pt</p><h2 style>This Heading is black bold at 14pt;</style></body>
    </html>



    Activity 5: Create an inline style using the STYLE attribute, to describe a paragraph that will have a font size of 11pt and a color of red.


    <html>
    <head>
    <title></title>
    </head>

    <body><p style=color:red;font-size:11pt;>This paragraph will be red with a font of 11pt.</p>
    </body>
    </html>
     
    dclary, Aug 29, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    
    <html>
    <head>
    <title></title>
    <style type=”text/css”>
    <! --p {font-size: 12pt; color:green}
    h2 {font-size: 14pt; font-weight:bold --!>
    </style>
    </head>
    <body><p style>This paragraph is green color at 12pt</p><h2 style>This Heading is black bold at 14pt;</style></body>
    </html>
    
    Code (markup):
    This is a piece of crap. You better start learning HTML before learning CSS. <p style> does not exist. Same with <h2 style>.

    
    <! --p {font-size: 12pt; color:green}
    h2 {font-size: 14pt; font-weight:bold --!>
    
    Code (markup):
    Commenting goes like this:

    
    <!-- comment -->
    
    Code (markup):
    And why commenting a rule that you need? Does not make any sense to me.

    I will not correct the html. #fail
     
    CSM, Aug 29, 2010 IP
  3. dclary

    dclary Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    For starters, I cannot believe that you talked to me like that and I never asked anyone to correct anything. I came to this forum, thinking that I would find someone nice enough to guide me in the right direction while I am trying to learn, but instead I get someone who is rude and has no desire to help others. Just as an FYI, below is text from my lecture that the questions were based on and as you will see my answers coincide with what they have. I regret ever coming to this forum and wonder why you even bother with the forum if all you are going to do is be rude to people? Never mind, it doesn't even matter, I feel sorry for you.

    [​IMG]
     
    dclary, Aug 29, 2010 IP
  4. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Ok, first of all. I am not rude. You don't want me to be rude.

    2nd: you are cheating. That's the point. You ask other people to correct your failures.
    When I was in school this was called cheating.

    3rd. Look at your code again:

    
    <! --p {font-size: 12pt; color:green}
    h2 {font-size: 14pt; font-weight:bold --!>
    
    Code (markup):
    Look ... what is wrong? <! -- ... at least you should look into your "lecture" and copy correctly.
    And this "lecture" ... must be mega old stuff. And ;} missing too.

    Then this one here:

    
    <p style>This paragraph is green color at 12pt</p>
    
    Code (markup):
    If you are willing to learn you should just use Google. Plenty of tutorials/howtos.

    <p stlye>... should be just <p> because you defined the rules above.
    <p style> does not exist.

    And that is what I said. <h2 style> must be <h2> ...

    And you are still a cheater, learning by doing is the real way.
     
    Last edited: Aug 29, 2010
    CSM, Aug 29, 2010 IP
  5. dclary

    dclary Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am really sorry that you think I am cheating. I am not trying to cheat and I have no reason to, I am going to college because I want to, not because I have to. I am probably old enough to be your mother and you just really caught me off guard with your response. Please believe me, I wouldn't be shelling out a ton of money just so that I could get a degree that wasn't worth anything more than the paper it was written on. I really did spend some time on that assignment and was confident in my answers, if it wasn't correct, which it obviously wasn't, you simply could have said, "no, this is not correct, try vising "this site" for help", I was not asking anyone to correct it. Despite whatever you think, I really am trying to learn.

    Either way, it doesn't matter, another forum user PM'd me and gave me the link to the W3C schools and it appears that it has quite a bit of information with an on hands approach. Thank you for your initial time and just a suggestion, try not to come off so harshly. Maybe you don't mean to, or intend for it to sound that way, but it does. Have a great week.
     
    dclary, Aug 29, 2010 IP
  6. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #6
    FYI: Thread: Need Someone to Check my CSS

    Sounds to me you are asking for correction.

    It's strange that you were not able to google first before asking here.
     
    CSM, Aug 29, 2010 IP
  7. dclary

    dclary Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You're right, I could have Googled it first, but I have found that using forums works better, at least for me anyway. With a forum setting, you can interact with someone who is at least knowledgeable on a particular topic, and ask for clarification if need be. On the other hand, when you Google a question or research a topic, you receive thousands of varying responses and it is time consuming trying to contact the owner of a site and wait for a response.

    I really like the W3C school link that the other forum user gave me. I now understand exactly what I was doing wrong. I will agree with you on one aspect, the lecture we were given does indeed seem to be dated as it differs greatly from what is shown on W3C site.

    Thank you again for your initial time and though I have no reason to apologize, I do regret that we have had to have this type of interaction. I understand your initial defensiveness as there are some who use forums in the hopes of sliding through their classes without learning, but I am not one of them. Personally, I don't understand why anyone would put out $20,000 plus dollars for piece paper that means nothing, but to each his own I guess.
     
    dclary, Aug 30, 2010 IP