More in this section

Forums / Developing with Sitefinity / How can I Align Designer to the Center

How can I Align Designer to the Center

3 posts, 0 answered
  1. Denis Kolesnikov
    Denis Kolesnikov avatar
    2 posts
    Registered:
    21 Feb 2006
    18 Jun 2007
    Link to this post
    All you examples align to the left. I want to align designer to center. And I want scale Designer content depends on resolution user monitor.
  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    18 Jun 2007
    Link to this post
    Hi Denis,

    We saw that you have opened another ticket with the same request for Sitefinity 2.5.

    Actually, there are two approaches for creating centered sites with Sitefinity:

    • You could place the designer control itself in a centered tag for example (div, td, etc).
      e.g.
      (Default.aspx)
      <div style="width:100%;text-align:center">
          <div style="width:800px">
              <radD:RadDesigner ....
          </div>
      </div>


      Using this approach you won't have to change the layouts.

    • You could enable the left and right cells of the outer most container of your layout and make the center cell a container. Then you have to set the width only for the center cell (e.g. 800px) and set some spacer control for the left cell and for the right cell (.ascx control which contains a transparent image or "&nbsp;" for example) or you could use r.a.d.editor for this purpose.
      e.g.
      Spacer.ascx
      or
      r.a.d.editor
      Container
      (width = 800px)
      Spacer.ascx
      or
      r.a.d.editor
    We hope this information helps.

    All the best,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Denis Kolesnikov
    Denis Kolesnikov avatar
    2 posts
    Registered:
    21 Feb 2006
    18 Jun 2007
    Link to this post
    Thank you.  I try it.
Register for webinar
3 posts, 0 answered