S
S
sunnyrio2017-10-15 17:42:05
css
sunnyrio, 2017-10-15 17:42:05

Why are set values ​​not applied in CSS?

I set the values ​​in main.css but they are not applied in the text why?
index.html:

<div class="container-fluid block-amazing-features">
        
        <div class="col-md-4"></div>
        <div class="col-md-4">
            <H1 class="h1block2">amazing features</H1>    
        </div>
        <div class="col-md-4"></div>
        
        <div class="col-md-1"></div>
        <div class="col-md-10">
            <font class="h2block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto.</font>    
        </div>
        <div class="col-md-1"></div>
        
        <div class="col-md-4">
            <font class=".h3block2">Accusan timar</font><br/>
            <font class=".h4block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantiu</font><br/>
            
            <font class=".h3block2">Accusan timar</font><br/>
            <font class=".h4block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantiu</font><br/>
            
            <font class=".h3block2">Accusan timar</font><br/>
            <font class=".h4block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantiu</font><br/>
        </div>
        <div class="col-md-4">
            <img src="img/Phone.png">
        </div>
        <div class="col-md-4">
            <font class=".h3block2">Accusan timar</font><br/>
            <font class=".h4block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantiu</font><br/>
            
            <font class=".h3block2">Accusan timar</font><br/>
            <font class=".h4block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantiu</font><br/>
            
            <font class=".h3block2">Accusan timar</font><br/>
            <font class=".h4block2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantiu</font><br/>    
        </div>
    </div>

main.css:
.h1block2 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    color: #282528;
}

.h2block2 {
    font-size: 18px;
    line-height: 1.4;
    color: #282528;
    text-align: center;
}

.h3block2 {
    font-size: 16px;
    font-weight: bold;
    color: #282528;
}

.h4block2 {
    font-size: 13px;
    line-height: 1.3;
    font-weight: normal;
    color: #282528;
}

59e373de7a9ef241361194.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Negwereth, 2017-10-15
@sunnyrio

Remove dots in HTML from class attributes. And read what selectors are.

N
NBComrade, 2017-10-15
@NBComrade

Most likely, the main.css file is not correctly connected to the web page.

S
sunnyrio, 2017-10-15
@sunnyrio

<link rel="stylesheet" href="css/main.css">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question