Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <title> Secret Of Beauty</title>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>

    <header>
        <h1>Example Heading</h1>
        <p>Website Slogan Example</p>
    </header>

    <p>Herbbssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.
    </p>



</body>

</html>



AND

CSS
h1{
    color:orange;
    text-align:center;
}
header p{
    color:blue;
}






All I want to do is change the header p {} color to whatever I want but it seems anything with header {} does not tend to work for some reason. wanted to see where I messed up the code or if not maybe some software I am missing I just do not understand.
Posted

1 solution

In these type of scenario people usually mess up with either the name of stylesheet or its extension

check the name first it should be style.css than check extension means it should be under folder css
 
Share this answer
 
Comments
Member 11495876 18-Apr-15 8:04am    
Yeah I have the index.html file then within another folder named css I have my css file named style.css when I change the Body file to color:whatever; it changes it to any color I want also when I change it to H1 it also changes the color of that but If I want to be specific with the Header p it does not let me change it individually.
Rana Waqas 18-Apr-15 18:12pm    
your code works fine with me. try opening it in another browsers.
Member 11495876 19-Apr-15 20:34pm    
thanks man my stuff was outdated I thought I lost it for a second there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900