Layout Element Margin

Posted by Community Admin on 03-Aug-2018 20:31

Layout Element Margin

All Replies

Posted by Community Admin on 18-Apr-2011 00:00

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

Posted by Community Admin on 19-Apr-2011 00:00

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

This thread is closed