Little doubt


#1

My question is this, the lesson asks me to assign the value of "bold" font-weight to attribute paragraphs of "Introduction" and "Summary" in the CSS file.
I put the code is as follows:

body> p {
font-weight: bold;
}

And I wonder if the way it should be or where I'm wrong, because I can not move to the next lesson.
Sorry if my English is not very understandable.


#2

Your English is fine, you speak a second language, that is already impressive. Could i see the rest of your css code? What i see seems fine


#4

Thanks for your time.

Here the complete code CSS:

p{
    font-family: Garamond;
}

body>p{
    font-weight: bold;
}

ul>li>p{
    text-decoration: underline;
}

Here the complete code HTML:

<html>
<head>
<link type = "text / css" rel = "stylesheet" href = "stylesheet.css" />
<title> Maximum challenge text </ title>
</head>
<body>
<p> Introduction: cascading effect with CSS </ p>
<div>
<p> Synopsis: When you set a property of a selector as 'p' with a
 certain value, this value applies to <em> all </ em> p 
labels.
However, if cambiás the same property to a different value for one instance more specifically p,
that change <em> will overwrite </ em> the 'general rule'.
</ p>
<ul>
<li> <p> If you say: p {font-family: Garamond}, all the 'p' will Garamond </p> </ li>.
<li> <p> But if you say p li {font-family: Verdana}, the 'p' outside 'li' will
Garamond, and the 'p' INSIDE the 'li' will Verdana font.
</p> </ li>
<li> <p> The more specific your selectors, CSS gives more 
importance to the style that you apply. </ p> </ li>
</ ul>
</ div>
<p> Summary: A greater specificity makes CSS to give priority to that particular style </ p>
</ body>
</ html>

The questions:
1) Make all the

have font-family Garamond property value. (NOT use the universal selector to do there a better way;! View useful tips for help.).
2) Make the introductory paragraph and summary are the property font-weight bold value (this property is new to you, but it works like the other you've learned).
3) Make paragraphs in the unordered list have ownership underline text decoration value.


#5

You get the error messages that introduction and summary aren't bold? Anyway, your Synopsis paragraph isn't the right color, this paragraph is a direct child of div


#6

I get a message that I need to put in bold paragraphs of introduction and summary, but in the result screen out these paragraphs in bold and I was wondering what I did wrong.

Pd: I wish I could explain what would be best option for what you told me about direct child


#7

@tagrunner92551 can you please provide a screenshot, what topic number. And Pleasse Look at THIS Topic Thankyou!


#8

Oh, sorry for my post disastrous :sweat:.

The text is in Spanish, I apologize for that.
Here the screenshot:


#9

What topic lesson is this so i can know the instructions..


#10

The lesson is that of CSS selectors, point number eight.


#11

Yea your suppose to point out p for each element like this:

p {
font-family: Garamond;
}
body > p {
font-weight: bold;
}
div > p {
color: #7AC5CD;
}
ul p {
color: #000000;
text-decoration: underline;
}

Hope this helped!


#12

Thanks for your help, but does not work I try anyway but I still leaving the message that failure to place paragraphs, I'll have to skip this lesson. Anyway thank you very much for taking the time.


#13

Ok wait a second @tagrunner92551 Please. Just give me one chance i got this!


#14

Ok now by what we discussed your suppose to have this code:

index.html:

<!DOCTYPE html>
<html>
<head>
    <link href="stylesheet.css" rel="stylesheet" type="text / css">
    <title>Maximum challenge text &lt;/ title&gt;</title>
</head>
<body>
    <p>Introduction: cascading effect with CSS &lt;/ p&gt;</p>
    <div>
        <p>Synopsis: When you set a property of a selector as 'p' with a
        certain value, this value applies to <em>all &lt;/ em&gt; p labels.
        However, if cambiás the same property to a different value for one
        instance more specifically p, that change <em>will overwrite &lt;/
        em&gt; the 'general rule'. &lt;/ p&gt;</em></em></p>
        <ul>
            <li>
                <em></em>
                <p><em>If you say: p {font-family: Garamond}, all the 'p' will
                Garamond</em></p><em>&lt;/ li&gt;.</em>
            </li>
            <li>
                <em></em>
                <p><em>But if you say p li {font-family: Verdana}, the 'p'
                outside 'li' will Garamond, and the 'p' INSIDE the 'li' will
                Verdana font.</em></p><em>&lt;/ li&gt;</em>
            </li>
            <li>
                <em></em>
                <p><em>The more specific your selectors, CSS gives more
                importance to the style that you apply. &lt;/ p&gt; &lt;/
                li&gt; &lt;/ ul&gt; &lt;/ div&gt;</em></p>
                <p><em>Summary: A greater specificity makes CSS to give
                priority to that particular style &lt;/ p&gt; &lt;/ body&gt;
                &lt;/ html&gt;</em></p>
            </li>
        </ul>
    </div>
</body>
</html>

CSS:

p {
    font-family: Garamond;
}

body > p {
    font-weight: 700;
}

div > p {
    color: #7AC5CD;
}

ul p {
    color: #000;
    text-decoration: underline;
}

If you have that correctly please check if your browser is chrome. If its not please get chrome and run on it. Please respond back with results thankyou.


#15

If amanuel2 code won't work, your browser is sending cached data, try a different browser


#16

Thank you very much and yes the problem was the browser :smile:


#17