Why every css code I write not change everything

I always try css code in additional css or try to write in style.css on the child theme, but not change my website…
for example :
.blog #primary, .single-post #primary {
width: 65%;
}
.blog #secondary, .single-post #secondary {
width: 35%;
}
that code not change when i saw my website

where I must write this code…on additional css or style.css or maybe I forget some code before or after that code…

Hello there,

Please share your page link where that CSS code could should take affect on, so I can inspect the trouble.

Regards,
Kharis

www.stpetrus-solo.org/2017
but i delete that css code because not work in my theme

Hai Mas Diknyo,

Salam sejahtera untuk kita.

To apply additional CSS code to your site, you can use either child theme’s style.css or Appearance > Customize > Additional CSS.

It seems likely the CSS code you’ve posted in your initial thread is aimed for blog page and single post page; to modify the main content and sidebar width.

I tried to apply the code on my test site and I found it worked fine.

Regards,
Kharis

Alo mas
salam sejahtera juga

ok I will try to write that code on style.css or additional css
but if not change, i need your help, :slight_smile:

hello again

/*
You can add your own CSS here.
.blog #primary, .single-post #primary {
width: 50%;
}
.blog #secondary, .single-post #secondary {
width: 50%;
}
Click the help icon above to learn more.
*/

I write that code on additional css but not change
https://stpetrus-solo.org/2017/suatu-hari-di-tahun-1936/

Hello there,

Your code won’t be read as it’s placed inside CSS comment block which starts with /* and ends with */.

Firstly, you need to clear it, then just leave your code alone. So it’ll look like this:


.blog #primary, .single-post #primary {
width: 50%;
}
.blog #secondary, .single-post #secondary {
width: 50%;
}

Regards,
Kharis

Helo…
hehehe…how stupid i am…Thanks for your help…

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis