New Landing How can we help? Themeforest Theme Support Dante First Child Alternative code

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Dante
  • #94003
    E_K
    Member
    Post count: 199

    Hello,

    I have been given

    body.home div.page-content > div.container:first-child{
    width:100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    }

    previously.

    Just wondering, if we can adjust this to second child, I mean second item not the first one.

    I will be waiting forward to hearing from you.

    #94007
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Yes of course, change it to:

    body.home div.page-content > div.container:nth-child(2){
    width:100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    }

    – Kyle

    #94014
    E_K
    Member
    Post count: 199

    Hi Kyle,

    Hope you are fine.

    Well, let me explain briefly.

    Previously div content was the first item on the page. Afterwords, I added blank space asset from page builder to top of the page.

    As you know, first child code became invalid. I used the code you provided. It does not work.

    Can you please check if it is the right code or I do something wrong?

    Many thanks in advance.
    Emre

    #94017
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    This should work:

    .home .inner-page-wrap .page-content > .container:nth-child(2) {
      padding-left: 0;
      padding-right: 0;
      width: 100%;
    }

    – Kyle

    #94019
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this custom css code:

    body.home div.page-content  div.container:nth-child(2){
    width:100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    }

    Hope that should work and let me know your feedback.
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #94020
    E_K
    Member
    Post count: 199

    Hello,

    Both codes are working fine.

    Thanks Kyle and Mohammad.

    Enjoy!

    #94021
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! No problem

    – Kyle

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register