• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

font color not being applied

New Here ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

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

peterb78017136_0-1711289064638.png

 

@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;
}

 

Views

75

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

hello there-

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

LATEST

Bookmark this CSS Reference:  😊

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

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines