Jump to content

Custom css to change the divide between 2 blocs of text not working>

Recommended Posts

Hi I'm trying to change the divide between two different text styles. The coloured headings I entered through coding in order to use a heading style I created, the subtext and grey is just the normal style.So I created my heading styles and then added a code line in order to make the margin underneath this font smaller. It has worked for my three previous headings, but all of a sudden stopped working. You can see in the images it has worked for the yellow title which corresponds to h6, but for this green style (h7) and all the next ones the code doesn't work. I'm including screen captures of the text itself and of the codes used. Please help me I don't understand why it doesn't work.

So are there are better ways of proceeding for what I'm doing, I'm new to all of this and just picked up a couple of tutorials online hence my lack of knowledge on how to do this the best way possible.

22376768_ScreenShot2020-07-28at11_10_35AM.png.9f991cc1f4afd0a0fb213cc6990fc5b9.png

1998757026_ScreenShot2020-07-28at11_10_43AM.png.f1a9ddd9dce1483cae8680e7279927bd.png

392271823_ScreenShot2020-07-28at11_10_27AM.thumb.png.b66bb8f2af7ea4d18b147ea27dca4b5e.png

Link to comment
  • Replies 15
  • Views 682
  • Created
  • Last Reply

Top Posters In This Topic

  • 10 months later...
On 6/8/2021 at 2:44 AM, Chlohat said:

Hi. In the code, we have h1, h2, h3, h4, h5, h6

h7, h8... doesn't exist.

You can convert these code

h7 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #00993b;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h8 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #306ba6;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h9 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #582d7c;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h10 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d6242a;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h11 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #000;
    text-align: left;
    margin-bottom: -30px !important
}

h12 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 100px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #fff;
    text-align: center !important!;
    margin-bottom: -30px !important
}

h13 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: left;
    margin-bottom: -30px !important
}

h14 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

h15 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 60px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

to this

.h7 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #00993b;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h8 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #306ba6;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h9 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #582d7c;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h10 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d6242a;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h11 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #000;
    text-align: left;
    margin-bottom: -30px !important
}

.h12 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 100px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #fff;
    text-align: center !important!;
    margin-bottom: -30px !important
}

.h13 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: left;
    margin-bottom: -30px !important
}

.h14 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

.h15 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 60px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

Next, edit these code

<h7> <p>
    
    </p>Comme un Oiseau sur la Branche <p>

</p></h7>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p>6 ans et 1,10 mètre minimum.</normal>
  
<h8> <p>
  
  </p>Danse avec les arbres<p>

</p></h8>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p> 8 ans et 1,20 mètre minimum.</normal>
  
<h9> <p>
  
  </p>
Montée de la Fôret<p>
  
  </p>
</h9>
<normal>Parcours intermédiaire pour petits et grands.
<p>
</p>4 ans et 1 mètre minimum.</normal>

<h10><p>
  
  </p>La tête à Travers les Nuages <p>
  
  </p></h10>
<normal>Parcours familial sportif, magnifiques vues et des sensations garanties.
  11 ans et 1,40 mètre minimum.</normal>

<h11><p>
  
  </p>Plus près du Soleil
<p></p></h11>

to this

<div class="h7"> <p>
    
    </p>Comme un Oiseau sur la Branche <p>

</p></div>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p>6 ans et 1,10 mètre minimum.</normal>
  
<div class="h8"> <p>
  
  </p>Danse avec les arbres<p>

</p></div>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p> 8 ans et 1,20 mètre minimum.</normal>
  
<div class="h9"> <p>
  
  </p>
Montée de la Fôret<p>
  
  </p>
</div>
<normal>Parcours intermédiaire pour petits et grands.
<p>
</p>4 ans et 1 mètre minimum.</normal>

<div class="h10"><p>
  
  </p>La tête à Travers les Nuages <p>
  
  </p></div>
<normal>Parcours familial sportif, magnifiques vues et des sensations garanties.
  11 ans et 1,40 mètre minimum.</normal>

<div class="h11"><p>
  
  </p>Plus près du Soleil
<p></p></div>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
1 hour ago, tuanphan said:

Hi. In the code, we have h1, h2, h3, h4, h5, h6

h7, h8... doesn't exist.

You can convert these code


h7 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #00993b;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h8 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #306ba6;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h9 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #582d7c;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h10 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d6242a;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h11 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #000;
    text-align: left;
    margin-bottom: -30px !important
}

h12 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 100px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #fff;
    text-align: center !important!;
    margin-bottom: -30px !important
}

h13 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: left;
    margin-bottom: -30px !important
}

h14 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

h15 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 60px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

to this


.h7 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #00993b;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h8 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #306ba6;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h9 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #582d7c;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h10 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d6242a;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h11 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #000;
    text-align: left;
    margin-bottom: -30px !important
}

.h12 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 100px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #fff;
    text-align: center !important!;
    margin-bottom: -30px !important
}

.h13 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: left;
    margin-bottom: -30px !important
}

.h14 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

.h15 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 60px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

Next, edit these code


<h7> <p>
    
    </p>Comme un Oiseau sur la Branche <p>

</p></h7>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p>6 ans et 1,10 mètre minimum.</normal>
  
<h8> <p>
  
  </p>Danse avec les arbres<p>

</p></h8>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p> 8 ans et 1,20 mètre minimum.</normal>
  
<h9> <p>
  
  </p>
Montée de la Fôret<p>
  
  </p>
</h9>
<normal>Parcours intermédiaire pour petits et grands.
<p>
</p>4 ans et 1 mètre minimum.</normal>

<h10><p>
  
  </p>La tête à Travers les Nuages <p>
  
  </p></h10>
<normal>Parcours familial sportif, magnifiques vues et des sensations garanties.
  11 ans et 1,40 mètre minimum.</normal>

<h11><p>
  
  </p>Plus près du Soleil
<p></p></h11>

to this


<div class="h7"> <p>
    
    </p>Comme un Oiseau sur la Branche <p>

</p></div>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p>6 ans et 1,10 mètre minimum.</normal>
  
<div class="h8"> <p>
  
  </p>Danse avec les arbres<p>

</p></div>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p> 8 ans et 1,20 mètre minimum.</normal>
  
<div class="h9"> <p>
  
  </p>
Montée de la Fôret<p>
  
  </p>
</div>
<normal>Parcours intermédiaire pour petits et grands.
<p>
</p>4 ans et 1 mètre minimum.</normal>

<div class="h10"><p>
  
  </p>La tête à Travers les Nuages <p>
  
  </p></div>
<normal>Parcours familial sportif, magnifiques vues et des sensations garanties.
  11 ans et 1,40 mètre minimum.</normal>

<div class="h11"><p>
  
  </p>Plus près du Soleil
<p></p></div>

 

even if i do that, i am still getting the same mistake

Link to comment
16 hours ago, Chlohat said:

and the website has a new url - http://www.chamrousseaventures.com/les-parcours

Hi. I still see same code here. It looks like you haven't added yet.

On 6/9/2021 at 6:35 PM, tuanphan said:

Hi. In the code, we have h1, h2, h3, h4, h5, h6

h7, h8... doesn't exist.

You can convert these code


h7 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #00993b;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h8 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #306ba6;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h9 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #582d7c;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h10 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d6242a;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

h11 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #000;
    text-align: left;
    margin-bottom: -30px !important
}

h12 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 100px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #fff;
    text-align: center !important!;
    margin-bottom: -30px !important
}

h13 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: left;
    margin-bottom: -30px !important
}

h14 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

h15 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 60px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

to this


.h7 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #00993b;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h8 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #306ba6;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h9 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #582d7c;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h10 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d6242a;
    text-align: left;
    margin-bottom: -30px !important;
    margin-top: -3px !important
}

.h11 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #000;
    text-align: left;
    margin-bottom: -30px !important
}

.h12 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 100px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #fff;
    text-align: center !important!;
    margin-bottom: -30px !important
}

.h13 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: left;
    margin-bottom: -30px !important
}

.h14 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

.h15 {
    font-family: 'ALTE-Regular2',normal;
    font-weight: 400;
    font-size: 60px;
    letter-spacing: .2em;
    text-transform: None;
    line-height: .7em;
    color: #d92052;
    text-align: center !important!;
    margin-bottom: -30px !important
}

Next, edit these code


<h7> <p>
    
    </p>Comme un Oiseau sur la Branche <p>

</p></h7>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p>6 ans et 1,10 mètre minimum.</normal>
  
<h8> <p>
  
  </p>Danse avec les arbres<p>

</p></h8>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p> 8 ans et 1,20 mètre minimum.</normal>
  
<h9> <p>
  
  </p>
Montée de la Fôret<p>
  
  </p>
</h9>
<normal>Parcours intermédiaire pour petits et grands.
<p>
</p>4 ans et 1 mètre minimum.</normal>

<h10><p>
  
  </p>La tête à Travers les Nuages <p>
  
  </p></h10>
<normal>Parcours familial sportif, magnifiques vues et des sensations garanties.
  11 ans et 1,40 mètre minimum.</normal>

<h11><p>
  
  </p>Plus près du Soleil
<p></p></h11>

to this


<div class="h7"> <p>
    
    </p>Comme un Oiseau sur la Branche <p>

</p></div>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p>6 ans et 1,10 mètre minimum.</normal>
  
<div class="h8"> <p>
  
  </p>Danse avec les arbres<p>

</p></div>
<normal> Un parcours d’initiation ideal pour les enfants comme les adultes.
<p>
</p> 8 ans et 1,20 mètre minimum.</normal>
  
<div class="h9"> <p>
  
  </p>
Montée de la Fôret<p>
  
  </p>
</div>
<normal>Parcours intermédiaire pour petits et grands.
<p>
</p>4 ans et 1 mètre minimum.</normal>

<div class="h10"><p>
  
  </p>La tête à Travers les Nuages <p>
  
  </p></div>
<normal>Parcours familial sportif, magnifiques vues et des sensations garanties.
  11 ans et 1,40 mètre minimum.</normal>

<div class="h11"><p>
  
  </p>Plus près du Soleil
<p></p></div>

 

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 6/18/2021 at 3:36 PM, Chlohat said:

here is a screen capture of the website, i had to put it online so i change it to the precedent code. 

Screen Shot 2021-06-17 at 10.53.16 AM.png

if your site is live, you can duplicate page & add code there, we can check easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.