MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Margin on the x side of the screen only



  • Hey,

    I’m looking on adding a margin on only the right side of my screen, margin-right : X px doesn’t work …

    Could someone help please ?



  • @Morganga It’s not working because width is calculated dynamically and affecting the margin. You can changed the width offset to adjust it using custom.css. See below.

    body
    {
       width: calc(100% - 250px);
    }
    

    Adjust the value of 250px for your need.

    Before
    b4


    After
    after


Log in to reply