More in this section

Forums / General Discussions / Layout Element Margin

Layout Element Margin

2 posts, 0 answered
  1. JOHN STRUCHYNSKI
    JOHN STRUCHYNSKI avatar
    14 posts
    Registered:
    30 May 2008
    18 Apr 2011
    Link to this post
    Hello,

    I am using layout elements in my dynamic page.
    In my case I want to create a simple layout, two (table) cells.

    IE

    <table style="width:100%;">
    <tr>
    <td style="width:40%;></td>
    <td style="width:60%;"></td>
    </tr>
    </table>

    The Sitefinity 4.0 way is to use the layout element too, and divide a container into several cells. The problem I am having when using this tool is that an additional left margin is being applied to make cell(s). The default value is 12px (margin-left12px). This happens even when i try to manually set column/cell space to 0 or Nan.

    Is there a bug in Sitefinity, or is there a way to make two or more containers with 0 margin for each cell?

    Thanks!

    Ole
  2. Jordan
    Jordan avatar
    172 posts
    Registered:
    20 Oct 2015
    19 Apr 2011
    Link to this post
    Hi John,

    I have created some test and when I set the margin from 12px to 0 from the "spaces" tab in the layout editor everything works fine - no additional spaces. May be the problem is with the margin of the parent element?

    But if you want to define your own layout widget you can write the html in an ascx file and then register it in the toolboxes section in the advanced settings.



    Best wishes,
    Jordan
    the Telerik team

2 posts, 0 answered