Reputation: 1519
I have an HTML which I have used in the content section of the DIVI code module (as show below):
HTML(Present in the content):
<blockquote><span>BPRO helped me realize the importance of cus- tomer organization and tracking, service track- ing and just being on the top of things behind the scene. The more you grow – the more difficult this becomes – but having the right tools to keep your business organized is just as impor- tant as having the right tools to do job itself.</span> <p>Some Person - Some Day 2018</p></blockquote>
CSS:
I have a CSS as well which I want to apply for the HTML code present in the content. I am wondering where I should be putting my css codes. The CSS codes which I have is:
blockquote {
padding: 20px 60px;
background: #eee;
border-radius: 10px;
font-family: arial;
line-height: 1.625;
position: relative;
}
blockquote p {
text-align: center;
}
blockquote span {
position: relative;
display: inline-block;
}
blockquote span:before {
content: "“";
font-size: 72px;
color: #79b83a;
position: absolute;
left: -40px;
top: 40px;
line-height: 0;
}
blockquote span:after {
content: "”";
font-size: 72px;
color: #79b83a;
position: absolute;
right: -40px;
bottom: -10px;
line-height: 0;
}
Problem Statement:
I am wondering where I should be putting the above CSS code. I tried putting the code in the main element in the advanced section of the code module settings but it didn't work.
Upvotes: 0
Views: 882
Reputation: 1
You can put your css also in Divi Code Module Content area, just use 'style' tags:
<style>
your css code goes here:
blockquote {
padding: 20px 60px;
background: #eee;
border-radius: 10px;
font-family: arial;
line-height: 1.625;
position: relative;
}
... etc
</style>
Upvotes: 0
Reputation: 13850
I see you're using the code I wrote out yesterday.
You can keep the HTML in your Divi module, and put the CSS in the Appearance > Customizer > Additional CSS section
Edit: It looks like Divi has a custom CSS section as well as a Per Module, Row, and Section CSS option, though I'd recommend keeping custom CSS in as few locations as possible.
Upvotes: 1