css of block page

3 replies · opened Dec 24, 2021

DdobashikentarouDec 24, 2021

The CSS I specified does not work for h1 and h4, but is it not possible to specify it normally?

https://newshambhala.com/site/writing.html

html
<div class = "container">
<div class = "content-dobashi">
<center> <h1> Earn 50,000 a month with writing </ h1> </ center>
</ div>
<div class = "row">
<div class = "col-sm-6">

![attachment](images / mydownload / writing1.jpg)
</ div>
<div class = "col-sm-6">
<h4> Earn 50,000 a month with writing </ h4>

css:
.content-dobashi> h4 {
/ * background: linear-gradient (transparent 50%, rgb (66, 111, 235) 50%); * /
/ * text-decoration: underline; * /
color: red;
padding-top: 5px;
}

SSemicolon WebSTAFFDec 26, 2021

Hello,

Thanks for your Patience!

The CSS you are using is incorrect. Please consider using the following CSS instead:
[ch_pre type="css"].content-dobashi h4 {
/ * background: linear-gradient (transparent 50%, rgb (66, 111, 235) 50%); * /
/ * text-decoration: underline; * /
color: red;
padding-top: 5px;
}[/ch_pre]

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

DdobashikentarouDec 27, 2021

thank you. It worked fine.
Did you only fix> h4?

There was a similar part in another CSS, but there is a part that does not work just by deleting>.

SSemicolon WebSTAFFDec 27, 2021

Hello,

Yes, we only fixed this part: > h4. The > in CSS refers to the direct child which in your Codes h4 was not.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard