On The Tenth Day Of Divi, We Explore Seven Simple CSS Tricks

Posted on December 20, 2013 by in Resources 153 Comments

On The Tenth Day Of Divi, We Explore Seven Simple CSS Tricks
Blog / Resources / On The Tenth Day Of Divi, We Explore Seven Simple CSS Tricks

Hopefully you have had a chance to download our latest theme, Divi. As mentioned in the Theme Launch Post, we will be writing a Divi-related post on our blog every day for the next 12 Days of Divi. Be sure to tune in each day for the next twelve days to get your hands on tons of Divi-related tips and resources! If you haven’t checked out Divi yet, then click the link below to view the release post with all the juicy details, and for your chance to win a free Lifetime Membership!


7 Simple CSS Tricks For Divi

Youโ€™d be surprised what a few lines of CSS can do. Today, we would like to share a few easy customizations that you can make to your Divi Theme using only the Custom CSS panel in our ePanel Theme Options. There is even a good chance that some of these customizations will be theme options in future updates of Divi. To apply this changes, simply copy and paste the code mentioned into the “Custom CSS” box in ePanel, which can be found under the Appearances > Theme Options tab in your WordPress Dashboard.

Give Your Navigation Bar Absolute Positioning

By default Divi has a fixed header that will always appear at the top of the browser. If you have a short website, or do not want the navigation bar to impede your content, you can use this CSS modification to add absolute positioning to your header so that it scrolls up with th rest of your page.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.



	top: 0; 
	background-color: #fff; 
	position: absolute; width: 100%; 
	z-index: 99999; 
	padding: 18px 0 0 0 !important; 
	min-height: 43px !important; 
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important; 
	-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important; 
	-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important; 
	-moz-transition: all 0.2s ease-in-out; 
	-webkit-transition: all 0.2s ease-in-out; 
	transition: all 0.2s ease-in-out;
.et-fixed-header #logo { max-height: 43px; }
.et-fixed-header nav#top-menu { padding-top: 11px;}
.et-fixed-header #top-menu li > a { padding-bottom: 29px;}
.et-fixed-header .et-search-form { top: 46px; }
.et-fixed-header #et_search_icon:before { top: -3px;}

Outline Buttons with a Thin Stroke

This customization applies a stroke outline and no fill giving your buttons a lighter feel inside your modules. This effects both dark and light text options.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.


.et_pb_bg_layout_light .et_pb_promo_button, .et_pb_bg_layout_light .et_pb_more_button, .et_pb_bg_layout_light .et_pb_newsletter_button, .et_pb_pricing_table_button {
	background-color: rgba(255, 255, 255, 0) !important;
	color: #82c0c7;
	border-color: #82c0c7;

.et_pb_promo_button, .et_pb_newsletter_button, a.et_pb_more_button, .et_pb_pricing_table_button {
	background-color: rgba(0, 0, 0, 0); 
	border: solid 2px; 

Square-Off Button Corners

Buttons in Divi have small, rounded corners, but you can use this CSS to give your buttons squared-off corners.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.


.et_pb_promo_button, .et_pb_newsletter_button, a.et_pb_more_button, .et_pb_pricing_table_button {
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;

Give Your Buttons a 50% Opacity Hover State

Create a smooth hover animation with this modification. With this CSS, your buttons will transition to 50% opacity upon hover to give the user a subtle interaction cue.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.


.et_pb_promo_button, .et_pb_newsletter_button, a.et_pb_more_button, .et_pb_pricing_table_button {
	-moz-transition: all 0.2s ease-in-out;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;

.et_pb_promo_button:hover, .et_pb_newsletter_button:hover, a.et_pb_more_button:hover, .et_pb_pricing_table_button:hover {

Make Your Navigation Menu Dark

If youโ€™re using section backgrounds and images that warrant a dark navigation, you can use this CSS to invert the light appearance of Diviโ€™s menus.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.

#top-menu a, .et_mobile_menu a, #et_search_icon:before {
    color: #ddd !important;
#top-menu a:hover, .et_mobile_menu a:hover {
    color: #fff !important;
.nav ul li a:hover, .et_mobile_menu li a:hover { color: #111; background-color: #2b2b2b; }
#top-menu li.mega-menu > ul > li > a:first-child, .et_mobile_menu li a {
    border-bottom: 1px solid #444;
#main-header, .et_mobile_menu, .nav li ul , #top-menu li.mega-menu > ul > li > a:first-child:hover, .et-search-form {
    background-color: #333 !important;
.et-search-form input {
    background-color: #2b2b2b;
    color: #999;

Round Off the Corners

Almost every every element in Divi has squared-off corners. If rounded corners are a more desired look, this CSS will round the corners of every module and menu in Divi.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.


@media only screen and ( min-width:768px) and (max-width: 980px ) {
.et_pb_featured_table:nth-child(3), .et_pb_featured_table:nth-child(4){margin-top: 30px;}


.et_pb_pricing_table:nth-child(odd) .et_pb_pricing_heading{


.et_pb_pricing_table:nth-child(even) .et_pb_pricing_heading{


@media only screen and (max-width: 767px){

.et_pb_pricing_heading, .et_pb_tab_active:first-child{



.et_pb_featured_table .et_pb_pricing_heading, .et_pb_tabs_controls, .et_pb_column_1_3 .et_pb_tab_active:first-child, .et_pb_column_1_4 .et_pb_tab_active:first-child, .woocommerce-tabs ul.tabs {

.et_pb_pricing_table:first-child { 

.et_pb_pricing_table:first-child .et_pb_pricing_heading, .et_pb_tab_active:first-child{

.et_pb_pricing_table:last-child { 

.et_pb_pricing_table:last-child .et_pb_pricing_heading{

.et_pb_all_tabs, .nav li ul, .et-search-form{

 .nav li ul ul{

.et_pb_main_blurb_image img.et-animated, .et_pb_counter_container, .et_pb_slider, .et_pb_testimonial, .et_pb_promo, .et_pb_image, .et_pb_portfolio_item img, .et_pb_post img, .et_pb_blog_grid .et_pb_post, .et_pb_newsletter, .et_pb_toggle, .et_pb_tabs, .et_pb_contact p input, .woocommerce ul.products li.product a img, .woocommerce-page div.product div.images img, .woocommerce-tabs, .et_overlay{
	-webkit-border-radius: 6px !important;
	-moz-border-radius: 6px !important;
	border-radius: 6px !important;

.et_pb_blog_grid .et_pb_post img{

Style Your Posts With a Gray-scale Hover Effect

Using CSS3 Filters, we can apply some fun effects to our Project, Post, and Product images. This customization will de-saturate any image right in your browser. Combining this with CSS transformations, we can create a nifty fading effect on hover. After applying this CSS, your blog, portfolio, and store thumbnails will fade to black & white on hover.


To apply this change, simply copy and paste the following code into the Custom CSS box in ePanel and click Save. If you ever want to revert back to the original style, you can simply delete the code from the Custom CSS field.

.et_shop_image:hover, .et_portfolio_image:hover, .et_pb_post img:hover {
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
	filter: grayscale(100%);

.et_pb_post img{-moz-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s}
.et_overlay {background: rgba(255, 255, 255, .25);}
.et_overlay:before {color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.3);}
.et_shop_image:hover .et_overlay, .et_portfolio_image:hover .et_overlay { opacity: 1; border: 0 solid #e5e5e5;}

Divi Cyber-monday Sale

It's The Divi Cyber Monday Sale! Save Big For A Limited Time ๐Ÿ‘‡

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Cyber-monday
Premade Layouts

Check Out These Related Posts

9 Non-Profit Child Themes for Divi

9 Non-Profit Child Themes for Divi

Posted on July 27, 2019 in Resources

There are lots of nonprofit organizations across the globe. Just about every one of them needs a well-designed website to tell their story and receive donations to help their causes. Divi is an excellent theme for nonprofits such as charities. Fortunately, you donโ€™t have to start from scratch for...

View Full Post
The 11 Best Code Editors Ranked

The 11 Best Code Editors Ranked

Posted on January 3, 2019 in Resources

Whether you’re a new web developer or a veteran code junkie, you need a code editor robust enough to handle everything you can throw at it. In fact, that might just be the most important part of your toolset. Since this is an ongoing search for most everyone the field, we wanted to give lay...

View Full Post


  1. Thanks for the tips!

  2. Nice!!

  3. Great, thank you Nick

  4. Thanks for the post. I have already been playing with the modifications on the dark header and I am noticing a quirk. When you go back to the larger sized header after scrolling down you will see a white background for a split second before it reverts to the correct color scheme.

    Any thoughts on a fix?

  5. This list is so great. As a CSS newbie this is so helpful. Thanks!

  6. Excellent tips, thanks for sharing! Have been working with Divi all week, it’s packed with so many goodies It’s making me totally rethink how I manage WordPress sites for the best!!

  7. I just tried the ‘gray scale hover effect.’ However, it doesn’t gray-scale the pictures, unless turning them completely white is the desired gray scale effect. Could it be that it doesn’t work for .jpg images?

    • Having the same issue.

  8. Wow, this launch is reaching epic proportions.

    A new religion, the Divi cult, unfolding before our very eyes.

    Praise the Lord!

    • Halleluyah…! Chuckles…

  9. Good stuff thank you

  10. Excellent post thanks again! They all worked great for me except the Grayed-Out posts. On my site it simply made all the images disappear (including the ecommerce module) when hovered over.

    • Which browser(s) are you seeing this issue occurring in?

      • FF and Chrome. Didnt try Safari or IE. I guess if nobody else is having the issue I’ll open a thread in the forum to keep the trouble-ticket off this section… unless you prefer to openly address it here.

        • I’ve had the same problem with Firefox it turns to white. Nothing happens on IE and Opera. It works on Chrome though.

          • Same…

      • same for me.
        Disabled it. It would be a nice ouch.. if it worked.

    • Yes I found that the ecommerce images completely disappeared as well on hover and that seemed to be related to the greyed out image script. Once I removed it, my ecommerce image hover returned to normal. Must be affecting the same selector.

  11. I like Divi and all of the tips and tricks! Dying for a client to want a new look.

  12. Ok GRT Idea posting this/these tips (and just can copy/paste) NOW I’m renewing my membership!! (didn’t like how buttons had no ‘life’ and luv sharp corners) Congrats on keeping up your Amazingness and for such an In$ane Price!!

  13. this looks amazing!

  14. Amazing and nifty CSS feats for top of the chart theme-Divi!

  15. Great stuff. Thanks ET!

  16. I’m hoping for auto sliding slider by the twelfth day?!

    • This will be added to a future version of the theme, but not by the 12th I am afraid.

      • Great Theme. I was trying to get the sidebar added to the woocommerce category page. I was told it is not easy. I see this in almost all the themes. What is the issue in adding it to the Divi?

      • Any idea when this feature will be added? We have an immediate need for it.

      • Hi Nick, did you guys manage to get a way to make the slider auto for the Divi theme? thanks!

        • There is an Auto Rotation option in the latest version of the theme. Be sure to update your theme to get access to the latest features.

          • HI Nick. I have Divi 2.1.4 and cannot find the AutoRotate feature. Can you point me to it please?

      • no one really cares though, i like this one.

      • Divi is an extraordinary theme, but I have some issues with the slider and my suscription ends ๐Ÿ™ Do you have any idea how I can fix it? :'(

      • My site changed after updating. I do not know CSS coding. The modules are taller (I do not know how to correct this) and the install for aWeber is not working and the sign up shows twice and is totally off. aWeber said the theme was overriding them. I have requested help and written over 10 request begging for help and no one will help me. I will pay someone to go one line with me and show me how and where to correct this.
        I hope someone here will respond.

        • Sorry to hear that you are having trouble. Please open a ticket in our support forums so that our team can assist you.

          • Hi Nick! Is there a way wherein I could move the text and the button of the fullwidth slider to the right or left? Thanks!

            • Try the Meta-slider plugin (not from elegant themes) – it works really well with DIVI

    • There is a simple to way to turn manual sliders auto it’s been covered in the Divi support forum.

      • Could you please point me to the right forum for this info?

  17. Awesome tips!

    The support forums should have something like this to help people with common questions and save duplicate posting.

  18. Very Very Handy and usefull tips how to use the css style with DIVI…

    Every day the DIVI will be stronger and stronger!.. ๐Ÿ˜‰

    Maybe a crazy question…

    I think it will a BIG problem to make a better theme than DIVI in the future for you guys, how will you manage that?


    • I think our main goal will be to make Divi better, rather than making a new theme that is better than Divi.

      We will continue to make new niche themes that are entirely different than Divi, which will make them better for certain situations. Divi is in its own class though ๐Ÿ™‚

      • Definitely it is!

        • @Nick that’s what I though… better that way ๐Ÿ˜‰

  19. Never cease to amaze!!! Best template company ever!

  20. I’m loving all your posts about Divi, and this one is especially useful! Not being a coder myself I appreciate it when someone hands me useful code that I can use to improve my sites.

  21. wow, this is by far the best divi day! would love to see more of this in the future.

  22. Perfecto. Justo lo que necesitaba para ajustar el sitio web que estoy preparando. Saludos.

  23. Wow! I absolutely LOVE CSS tricks like these. Absolutely awesome.

  24. I was testing some CSS since I’m playing with DIVI but all I need is in this post! Thanks guys! you rock!

  25. divi features is awesome. but, if the features of the divi will also be added in elegant builder?


  26. Great, that kind of customization take a few hours to do, thank you Nick, this a value resource, i remember that other good way to do instead of the css in the epanel is by creating a child theme, but i guess that is only better if we also made php changes, please tell me Nick, just for add a few css lines, wich is better way to do, childtheme or epanel css?

  27. I’m just wondering which value resource or rrick, you will show us tomorrow!

  28. Nice code snippets. I will use it in localhost to test them. Thanks for sharing it.

  29. Dark background header and gray-scale are one of the awaited effects.. Thanks Nick & team..

    • I would really love to see some creative layouts for blog posts too..

  30. Thats awesome..
    The rounded Corner makes the punch for the Layout, thanks a lot….

    btw: with the Grayscale CSS the same effekt here. FF and Chrome on Mac and Win.

  31. How to style posts with gray effect but reverse? Ie they start as b&w and on hover they get color? I think this way is better.

    • I agree – thought the same straight away. wish i could tell you how!

  32. Merci pour tout, c’est juste gรฉnial.

  33. I’d bet some sort of forum for sharing CSS tips and tricks, discovered by Divi users, would be very popular!

  34. I really like this wordpress theme so far and I was wondering if you guys could make a Sign up form module for user so that they can access diffrent pages that are restricted

  35. @Swerens I agree. We could get active on the ET Google Plus Forum, just like the guys @studiopress for the Genesis Framework have done

  36. It seems all website in next 2014 year will the same look (divi of course) i love divi but i hate if anyelese create the same looking site for customers and that is minus for me ๐Ÿ™‚ Don’t tell too anybody else about divi please !!!

  37. especially don’t tell about divi existing to anybody in slovakia from where i’m ๐Ÿ™‚ i know customization boa bla bla but customers are not stupid … if you create site for them and they say i see somewhere this graphics design ….

  38. If you care about your site’s speed and it’s effect on your conversion rates, here are my two cents about (but not limited to) the border-radius snippet.

    The theme already contains a relatively high number of vendor prefixes; so except if your website’s statistics show a significant amount of old browsers (which I really doubt), you may want to apply the 80/20 (or 99.991/0.001 in this case) Pareto law and discard the prefix for – amongst other – the border-radius property.

    As the caniuse.com great reference shows, it’s almost fully supported now.

    Additionnaly, here is a quick note for those who use tools like Lea Verou’s -prefix-free or NetTuts’ Prefixr (or WBond’s Sublime Text editor plugin).

    If you really love vendor prefixing your stylesheets, the very last version or WordPress integrates Sass – as a reference for the future generations who will live in outer space, I’m talking about the v3.8 as of today. So why not use snippets from kits like bourbon.io to manage them automagically.

    Well, I spent my two cents and have no more credit by now.
    From Paris with love ๐Ÿ™‚

  39. Anyone having any luck with the fixed position header. In Chrome and Safari it doesn’t seem to work for me.

    • I’m having the same issue. You found a solution?

    • I think you might try the important attribute. It worked for me…

      position:absolute !important;

  40. Gray-scale Hover Effect:
    how to reach the opposite effect, i.e. having de-saturated images which turs in original color on hover?

    • Hi Mac, the :hover pseudo element means “when the pointer hovers the object” while the grayscale(100%) value means “apply a full grayscale effect to the object”.

      So if you want the original object to be in grayscale and the hovered in original colors, you may want to apply the effect by default to the object and remove it when hovered.

      This should gives something like this :

      .et_shop_image, .et_portfolio_image, .et_pb_post img {
      -webkit-filter: grayscale(100%);
      -moz-filter: grayscale(100%);
      filter: url(“data:image/svg+xml;utf8,#grayscale”);
      filter: grayscale(100%);

      .et_shop_image:hover, .et_portfolio_image:hover, .et_pb_post img:hover {
      -webkit-filter: grayscale(0%);
      -moz-filter: grayscale(0%);
      filter: url(“data:image/svg+xml;utf8,#grayscale”);
      filter: grayscale(0%);

      Also you may not want this effect to be applied to all these classes : .et_shop_image, .et_portfolio_image and .et_pb_post img. you may want to remove those you don’t want the effect to be applied to in order to avoid overuse of the effect.

      I didn’t re-subscribe yet to ET and don’t plan to do it in the near future so I’m afraid I cannot test in real life especially to eventually edit the .et_overlay class.

      Hope this helps you.

  41. Now thats what I call incredibly useful CSSand practical as well. Will save hours hunting through CSS.

  42. Nice tricks, it will help all the designers !

  43. Nice tips – I sure appreciate being able to add them to my toolkit.

    My New Year’s wish is for a way to set the slider to auto play. I’m experimenting with javascript now but it’s scary. My client LOVES their new Divi site but insists on an auto play slide show.

    Please, please consider providing this for us in the “12 Days” of Divi.

  44. Hi Nick,

    The CSS for graying is not working on Firefox. The images are disappearing there.


  45. Any idea how we can deactivate mobile theme for a single page? Is there a way that can be done?

  46. Anyone knows how to customize the circle containing the menu on mobile navigation ? What a weird bug mine just disappeared and displays “67” instead.

  47. These are some great CSS tips and tricks. What I would love to figure out and have been having trouble with is: In the sliders, text is hard to see unless using specifically colored images behind the text. I would like to know how to add the overlay effect as is used with the buttons in the slider to the title and description to make it easier to read regardless of image background. Any help with this would be greatly appreciated. Keep up the great work!

  48. There is a simple to way to turn manual sliders auto itโ€™s been covered in the Divi support forum.

  49. the grayscale does not work for me on firefox (turns everything white) or on IE (has no effect). It only works on Chrome for me.

    Just wanted to say thanks for these codes. It’s a good start for me on editing my new site using the Divi theme. This was my first time purchasing a theme and I am glad I did. Keep up the good work developers at elegantthemes ๐Ÿ™‚

  50. How I could use the color # F7F6F3 in Navigation Menu ?

    • Hi Fabio.
      Just go into the css file and find .container { …. #main-header
      Then just change the background color there.

  51. The article “Style Your Posts With a Gray-scale Hover Effect ” did not work. The code is the same? ๐Ÿ™

  52. Great tips, thanks for all the hard work. My subscription has already paid for itself! Any way we can get the social media icons to float like in the foxy theme tweak?

  53. Some feedback and questions:

    1. In the “Tabs” module, how about providing a color picker for not only the background color of the tabs, but also the text color?
    2. Is there any easy way to adjust the colors of a tab module? If so, how does one go about doing so?

    Thanks for this great theme, it was the reason I bought a Elegant Themes membership. I’m just hoping that more “hacks” can be made into dropdown/clickable options instead of copy/paste features for even faster deployment over multiple sites, or give end-users a better opportunity to tweak their sites’ looks without having to actually delve into the code.

    Thanks for listening!

  54. Hi, I am making a site which has little content on some of the pages and the problem I’m having is that the footer is appearing in the middle of the page!

    Is there any CSS snippet that can keep the footer to the bottom of the page like a sticky footer possibly?


  55. Now that I’m starting to look at Divi I realise how useful these CSS changes are.

    Also useful to know where the custom CSS editor is.

    Thanks for providing.

  56. I bought elegant themes and I’m trying to use DIVI theme, but I would like to modify the dimension of my slideshow in the home page. The problem are:

    1 – if I use the slider module and I upload a background image, only a part of the picture is visible.Only using parallax effects it is possible to see all the picture.

    2 – if I upload a slide image, the image showed in the page is too small and left positioned, and I cannot modify it.

    I would like to have a page with a large slideshow and I wish the images were visible in their entirety also into the slideshow.

    Do you think it would be possible?
    thank you for your answer

    • If you need help with anything, please open a ticket in our support forums so that our team can assist you.

      • i opened one , but nobody replays.
        sorry, I’m new in elegant themes and I hope to find some help.

  57. Hi Nick,

    thank you again for your incredible work! I’m new of this blog so I ask you to have some patience. I have a question, in Divi Theme can I increase the font dimensions in “fullwidth slider” section “add new slide” part “heading”. Because I want increase the size of the title of the full slide.

    Thank you in advance!

    All the best

  58. Hi,

    I haven’t bought the Divi theme yet – still wondering if I can do certain things with it without too much hassle.
    Basically I would need to make the whole theme a dark BG, and extend the header down a bit to accommodate a bigger logo. Would also like to extend the nav to be more centrally located and filling more of the screen width (more spaced apart).

    Are these things easily achievable? I’m willing to spend a little on CSS tweaks by someone who knows that stuff ๐Ÿ˜‰



  59. Something I like to do is to use lazy loading animation on any element on your page.

    You can do this by adding CSS classes to anything you want to lazy load.

    For example I wanted a widget to load from the left, so I added this CSS class to it:

    et-waypoint et_pb_animation_left

    The et-waypoint tells it that is going to be animated. And the et_pb_animation_left tells it how to animate it. In this case, it loads it from the left.

    • Zak, that’s cool. Did you suggest this for my logo location problem. Actually would be awesome for the site logo to scroll on from left. Where in the style sheet would I put such CSS code though? And how would I attach it to the logo graphic. ?

  60. I’m viewing your Demo page on an iPad Air, the page is jumping up and down, I’d like to join, just wondering what your customer service is like.

    Are you aware of the page jumping?

    • I am having this problem also with a website I’m building right now. Adding a slider to the header is making everything below it jump up and down whenever the photo changes. Both photos are the exact same size. Is there a fix to this?

      • If you need help with anything, please open a ticket in our support forums so that our team can assist you.

      • I had the exact same problem while developing the latest layout for my site. Looking into the divi-help forums they suggested to deactivate any plugin before opening a ticket. Turned out it had something to do with the shareaholic plugin. As soon as I deactivated it everything went smooth.
        I opened a ticket on shareaholics support forum, but never got a response, so I use AddThis Smart layers instead. Hope this helps.

      • Did you resolve this problem as I have it on my divi site too only on the home page with the fullwidth slider bar? thanks.

  61. Great Stuff!
    Dark Navigation Menu Needs some added code:

    .et_mobile_menu .menu-item-has-children > a {
    background-color: #333 !important;

  62. In addition, add !important where I have to this section:
    .nav ul li a:hover, .et_mobile_menu li a:hover { color: #111; background-color: #2b2b2b !important; }

  63. I will like to know how to make the menu bar navegation looks like the sample, i mean the submenu that opens like that, horizontal. Also the woocommerce categories is not working.

  64. Suddenly all my text is white.. Even when I type it dark and make sure dark is selected in my text module…
    Please help… Thanks,

  65. How do you center the Navigation menu instead of having it to the left?

  66. I want to change the header of my site with my site name but dont know how this works in Divi. Can you please help me with it?


    • Please open a ticket in our support forums if you need help with anything.

      • How do i remove the menu button on the mobile version of the site?

  67. Hi,

    Can I add more than one css function in custom css field? If yes, how do I do it?


  68. I found a problem with the tabs on the browser Chrome. When you fix the problem?

  69. When inserting the “Give Your Navigation Bar Absolute Positioning” CSS code, the navi bar still moves a little when scrolling down.
    What can I do?

    Many thanks,


  70. Hi there, is there a way to use rounded corners on only one page of my website? I want one only one set of images to be in circles….can I do that via CSS? I don’t want everything to have rounded corners…

  71. Hi Nick,

    Great overview, thanks, looking forward to trying some of these out. Quick question – is there CSS for specific text to add a drop shadow effect? If you look at the homepage here:


    The word “Morning” blends into the background. Can I add CSS to that widget area to highlight “Morning Rain Publishing” with some drop shadow-type effect?


  72. How do I get the above button styles to work on the contact form buttons?

  73. Nick, thanks so much for the CSS tips. Is there a possibility of more to come???

  74. You! You! You… Enablers.

  75. Would be nice to be able to set padding etc.
    Some content between rows has a 50px pad in each row – ie 100 pixels!

    • I agree, sometimes that seems like a lot of wasted space.

    • Yes that extra space is a pain. I’m writing custom CSS to fix it which seems like the wrong way to go about it.

  76. I am very thankful to you if you help me. I am creating a blog using divi but I have some issues in layout

    When I add side bar then there is some extra space on the left and right.
    –Question is how to remove these spaces

    When I insert blurb in a four column row how to reduce their distance because they left extra space and this seems awkward .

  77. I was wondering if someone has updated the code for Divi 2.0

  78. I really appreciate the work you guys are doing, and i must say divi theme is one of the outstanding theme i have ever used. it’s just a bomb. Keep up the good programming. ๐Ÿ™‚

    i have been trying to remove the top menu link i.e the mega menu drop down from my site but all to no avail.
    can yoy please help

  79. Anyone know why I lose my tags whenever I exit a text module? Does Divi not support it? It doesn’t seem to matter if I code it in, or do a shift+enter. When I hit save and preview the page it shows up correctly. As soon as I open the text module it loses the spacing. I can’t seem to find a way around it, getting annoying.

    • LOL, it lost my br tags in the comment as well.

    • Nevermind…found the answer –> TinyMCE-Advanced from wordpress is a wordpress plugin, which adds the option to disable the removal of and tags when saving a post and in the HTML editor (autop). After installing-activating, the option to enable line breaks can be found in the Settings->TinyMCE Advanced panel.

  80. Greetings Nick,

    I’m working on a test site for a client and she doesn’t like how much padding there is between the sections. Do you have custom css coding that I could use to reduce the padding between the sections. If so, that would be awesome.


  81. How i can decrease the main width of divi theme. i want decrease the all pages and modules width expect header and footer. Can some one help me.

  82. Nick, I’ve noticed that the custom CSS field is not persistent when I push to a new server (or production servers in my case). To push to production in the past we have simply rsync’d the full wordpress documentroot and then dumped the db from our staging server, dropped it in production, and reloaded from the production dump. When we do this all the CSS directives in the Custom CSS field need to be manually entered again via the UI. It’s a curious lack of persistence that makes me wonder where/how that data is stored. We have tried adding it to styles.css and advanced_options.css. Neither worked. Can you tell me how to make it persistent?

  83. This is a recommended update to the above CSS for the absolutely positioned header, as I had to make this change before it would work as described.

    Instead of:



    .et_fixed_nav #main-header{

    • Was having the issue with the header absolute position. The original code provided does not work.

      Your CSS works perfect Brandon.

  84. How can decrease space (in 1_3 column which 2 image and 1 sidebar) between images and sidebar. Help me plz i have very bad problem.

  85. I used divi 2.0.

  86. Any answer to AJ’s question about section padding? I HATE it, but no idea how to modify. The default logo is TINY, but HUGE section padding. Strange IMHO. Otherwise, LOVE Divi. But this is killing me. Thanks!

    July 5, 2014
    Greetings Nick,
    Iโ€™m working on a test site for a client and she doesnโ€™t like how much padding there is between the sections. Do you have custom css coding that I could use to reduce the padding between the sections. If so, that would be awesome.

    • Hi AJ & Jenny —

      I have found a workaround. It’s not perfect, but it does the trick. When you define a section, give it a css tag. Then adjust the custom css for that tag, so it will looks like this

      #yourcustomnamehere {
      margin-bottom: -10px;

      (You can change the margin to whatever you want, obviously, but I find that somewhere between -5px and -10px puts my things where I want them. You can play with margin-top, too, but I haven’t had as much success)

  87. I’am using this theme to my website, it was very cool but i have a problem.If i want to print my page it is having css issues it’s not giving exact page to print can anybody help me to overcome this problem.Thank you. You can check here also http://www.elegantthemes.com/demo/?theme=Divi

  88. Thanks for making divi theme. its great. i need some help with menu style . is there any css code or option to change the header Menu appearance . i am looking for some hover affect in different color after from predesigned appearance.
    i want different menu style which i am unable to do . kindly help if there is any way to do it.

  89. Hello.

    How to increase the padding space in the BLOG standard layout where ALL POSTS shown in a list. There are such a mess and impossible to define one post from another. I would love to have an icon that shows the date of the post as you have here at elegant themes blog, and definitely more space between posts or even different background color. What line in CSS is responsible for all posts listing?

    Best regards,

  90. why can I not change the footer to a pure colour? It has a grey overlay. thanks

  91. Hi
    Love this theme,it will make things much easier for me. I’m just converting my site to wordpress , im struggling trying to change the color of the et buttons, Ive entered hex codes but that doesnt work, is there a simple way to change the css so that when I select say a red button, I get a darker color red.


  92. HELP!!

    I need to remove the blank space between the header and the first section only. I want the picture just below the logo. Or reduce the main-header size

    here the site: http://playstation.increatum.org/unconvention/

    • Someone help me, please!
      How can I put this code on my Divi Epanel Custom CSS ???

  93. Do you have a CSS trick for putting rounded corners all round a site using the boxed layout? By that I mean, the very top and the very bottom of the site would have rounded corners. I’m finding it challenging isolating the elements to change.

  94. Hello,

    In the navigation bar, I’d like to change 1 link to have a different background, font and hover color. Is there a link somewhere describing how to do this? If not, can you please help me? Thank you!

  95. Hello, thanks for the tips, but i did not see what i needed. Almost but not exactly with Give Your Navigation Bar Absolute Positioning.
    i actually need my full width menu to be floating in the middle.
    also how can i add custom buttons to the menu?

  96. Great tips. The rounded corners on every module is very nice but how can you round the corners of every row and section also? If my modules have the same background color as a row or section , the effect is not seen. Can you round the larger containers also?

  97. Actually, it looks like it is not effecting a text module with a background color.

  98. The Round Off the Corners works great on most modules but not on the text module.. anyone know what I could add to have the rounded corners on text modules as well?

  99. With regard to rounding all corners of modules, is a Section a module? I’ve wanted to create a rounded border, semi transparent background with a 1 or 2 pixel border, for the entire page so that it hovers over a background image. How can I do that just to that module?

  100. This absolute positioning CSS doesn’t seem to work out of the box with the new version of divi – I get a funky odd sized semi-transparent header that still follows the page….

  101. Great Post! Simple anal, spell check spotted: the last sentence… th
    Give Your Navigation Bar Absolute Positioning

    By default Divi has a fixed header that will always appear at the top of the browser. If you have a short website, or do not want the navigation bar to impede your content, you can use this CSS modification to add absolute positioning to your header so that it scrolls up with th rest of your page.

  102. Hi, does anyone know how to change the header design of DIVI as per http://infinium.co.uk

  103. I want to change nav bar of my website with this.

  104. I am using Divi Builder with Headway theme.

    I’d like for all the Divi modules to have slightly rounded corners.

    I found the code in this article. My problem is, I don’t know where to put the code. Divi Builder doesn’t have an ePanel, at least I can’t find one.

    Can someone direct me to where I should put the rounded corner code?

    Many thanks!

    • Every divi module, row, and section has a custom css tab.

Get Started With Divi