0 Replies Latest reply on Jan 31, 2017 4:20 AM by SergeiS

    How to center the content and repeat the background together?

    SergeiS

      Hi! Sorry for my English.

       

      I have two results of my work: content be centered or background be repeated.

       

       

      First case, content centered (red rectangles is CONTENT, conditionaly):

      4567.PNG

      Code:

      $("#Stage").css("margin","auto")

       

       

       

      Second case, background repeated but content aligned to left:

      1234.PNG

      Code:

       

      $("#Stage").css("margin","auto")

       

      sym.$('Stage').css({

                'background-image':'url(images/back.svg)','background-repeat':'repeat','width':'100%','ba ckground-size':'208px 90px'

                })

       

       

       

      How can I make the repeating background AND the centering content together? 

       

       

      Sorry for my English again.

      Thanks a lot.