HTML Colored Box: How To Limit Box Width?

  • Author
    Posts
  • #2517326

    Dear all,

    On this page we used a colored box with that code:

    http://ledergerber-partner.ch/angebot/unternehmensstrategie
    <div style=”background-color:#DFEAED;padding:12px;”>

    </div>

    – 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?

    Thanks,
    Raphael

    The blog I need help with is ledergerber-partner.ch.

    #2517437

    kokkieh
    Staff

    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:
    https://en.forums.wordpress.com/forum/css-customization#postform

    #2517440

    Hi kokkieh,

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

    Best regards,
    Raphael

    #2517449

    kokkieh
    Staff

    You’re very welcome :)

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