HTML Colored Box: How To Limit Box Width?

  • Author
  • #2517326

    Dear all,

    On this page we used a colored box with that code:
    <div style=”background-color:#DFEAED;padding:12px;”>


    – To eliminate the empty box space on the right side we would like to limit the box width with e.g. 600 px.
    – To have it also for mobile users we would like to make this box mobile friendly (like the other page sections).

    How to do that with changing our HTML code?


    The blog I need help with is



    Hi there,

    Can you please post this question in the CSS Customisation forums? They’ll be able to help you with either the correct inline CSS, or even to create a CSS class you can use if you want boxes like that on other pages as well.

    You can find the CSS forum here:


    Hi kokkieh,

    Thank you for this information. Sure, I’ll do that.

    Best regards,



    You’re very welcome :)

The topic ‘HTML Colored Box: How To Limit Box Width?’ is closed to new replies.