Skip to Content
author's profile photo Former Member
Former Member

Centering a component in the viewport

I am trying to center a component in the viewport, but it doesn't seem to be possible with the default BO components.

Is it possible to create a custom container component that acts as a container, like the grid component does? Or does anyone know a better solution?

Thanks for your time!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 06, 2014 at 06:12 PM

    Have you tried using the Panel as a container to group your components?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 06, 2014 at 10:14 PM

    You can set the Panel margins (top, bottom, left, right) to 0, effectively making a 100% height and width component. Note: set width and height to auto first, or DS will fight you on it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.