- This topic has 17 replies, 3 voices, and was last updated 2 years, 10 months ago by
David.
-
AuthorPosts
-
September 2, 2018 at 9:21 am #666752
Immi
hello there,
How To Use Specify the background color in a post without spacing I have applied below code, but the problem is some gap with white color. I want to fill only by one color like this http://www.screencast.com/t/wYFqn9bwh5 {
background-color: #f2f2f2;}
GP Premium 1.7.2September 2, 2018 at 6:12 pm #666958Leo
StaffCustomer SupportHi there,
Is there a specific section I should be looking at?
I’m not see the content in your screenshot on your page.
But two options for applying CSS to certain page:
1) Use Tom’s Simple CSS plugin so it gives you a CSS metabox for each page.
2) Do something like this:
.page-id-xx h5 { color: #fff; }
Let me know if this helps 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 2, 2018 at 9:11 pm #667008Immi
hello Leo,
I want to highlight some points in the post by a background color without spacing.
h5 {
background-color: #f2f2f2;}
September 3, 2018 at 2:47 am #667231David
StaffCustomer SupportHi there,
you’re gonna need to put some markup around it:
HTML
<div class="important-box"> My content here </div>
CSS
.important-box { background-color: #f2f2f2; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 10:53 am #667681Immi
Hello there,
I want to change the exact content background color/ box in some specific paragraph
like this:- **
September 3, 2018 at 11:02 am #667687Leo
StaffCustomer SupportDavid’s reply above should do exactly that.
Have you tried it?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 11:11 am #667693Immi
Yes, I have tried it. when putting HTML code error indicate can you please provide CSS code for this
September 3, 2018 at 11:19 am #667694Leo
StaffCustomer SupportDavid has provided both HTML and CSS and there are no errors in them.
Can you link me to the page where you’ve added this?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 11:26 am #667698Immi
Yes Please have a look **
September 3, 2018 at 11:33 am #667703Leo
StaffCustomer SupportThat’s HTML and not PHP as David indicated above.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 12:07 pm #667731Immi
can you tell me where to put this code exactly?
<div class="important-box"> My content here </div>
September 3, 2018 at 12:24 pm #667746Leo
StaffCustomer SupportThis should help: https://www.wpbeginner.com/glossary/text-editor/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 12:26 pm #667749Immi
Thank you
September 3, 2018 at 12:43 pm #667761Leo
StaffCustomer SupportNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 28, 2019 at 7:02 am #943918Immi
hello David Sir,
if I want to put another markup with the different background colour/Style so how to put another CSS for secondary markup.I’m trying to achieve like following, but unfortunately, it’s not working.
.important-box (2){
padding: 20px 10px;
border-radius: 10px;
line-height:40px;
color: z black
box-shadow: .0em 05em 12em .01em #eee;
background: white;
} -
AuthorPosts
- You must be logged in to reply to this topic.