Skip to main content
Participant
March 24, 2024
Question

font color not being applied

  • March 24, 2024
  • 2 replies
  • 166 views

hi there-

I am trying to learn html and css.I have run into an isuue where the the color I am tying to apply to the my h2 subheadings is not displaying- it does not render in in DW nor does it show in the browser and I cannot alter it in the inspector either.  I am able to change the font size in DW and see those changes applied.

I am using github to make my page live.

Any insights into why this is occuring would be most appreciated -TY

 

@charset "UTF-8";
body {
margin : 0;
font-family : Helvetica, Arial, Sans-Serif;
}
header {
background-color : #d14635;
text-align : center;
padding-bottom : 80px;
padding-top : 50px;
}
h1, h2 {
 
font-family: 'Press Start 2P', sans-serif;
}
 
 
header h1 {
font-size: 55px;
color: white;
 
}
 
h2 {
font-size: 35px;
font-color: #0a7ab8;
}
 
main{
max-width: 800px;
padding: 0 20px;
 
}
main img{
max-width: 100%;
 
}
 
header img {
border-radius : 170px;
width : 300px;
border : #d15635 solid 20px;
}

 

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    March 24, 2024

    Bookmark this CSS Reference:  😊

    https://www.w3schools.com/cssref/

     

    Nancy O'Shea— Product User & Community Expert
    Participant
    March 24, 2024

    hello there-

    just realized my issue was using 'font-color' instead of 'color'