Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74793

Why aren't my font-weight and letter-spacing working outside h1?

$
0
0

very new to this and have tried several fixes without success.

Inside h1, my fonts are all correct and reacting as expected:

h1 {
position:relative;
left: -10px;
top: -16px;
padding: 2em;
height: 3em;
width: 100%;
background: #545454;
font-family: "Avenir Light", sans-serif;
font-size: .7em;
text-align: center;
color: darkgray}
h1 p {
    font-weight: 30;
    word-spacing: 30px;}

But the text isn't responding anywhere else on my page, even when inserted under body, body p, into each individual element... It's driving me nuts!

body {
    margin: 0, 0;
    padding: 0, 0;
    overflow-x: hidden;
    background: #765264;
    color: white;
    font-family: "Avenir Light", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}


body p {
    font-size: 1em;
    font-family: "Century Gothic";
    font-weight: 30;
    letter-spacing: 1px;
}

Weirdly, inserting letter-spacing above seemed to make the spacing larger.

Please help!


Viewing all articles
Browse latest Browse all 74793

Latest Images

Trending Articles



Latest Images