New Landing How can we help? Themeforest Theme Support Dante Text Block – set width & centred

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #43606
    Hamilton
    Member
    Post count: 28

    Hey SWIFT,
    I’d like to have one text block but not full width.
    Is there away I can set the exact with of the text block and then have that text block centred within the page?

    Thanks,
    /Ryan

    #44278
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi, Can you please provide the page link so i may provide you some custom css.

    Thanks
    Tahir

    #44347
    Hamilton
    Member
    Post count: 28
    This reply has been marked as private.
    #44640
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    For the css of your div, wrap it in a media query:

    @media only screen and (min-width: 991px) {
    
     #my_textDiv {
       width: 70%;
       margin: 0 auto;
       text-align: left;
     }
    
    }

    I would also recommend changing it from an id to a class, as you use it multiple times on the page. ID’s are for elements that are only specified once, classes are for multiple elements.

    Hope this helps!

    – Kyle

Viewing 4 posts - 1 through 4 (of 4 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