This is a migrated thread and some comments may be shown as answers.

Nested PageLayouts Padding Issue

1 Answer 74 Views
PageLayout
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 07 Apr 2015, 02:38 AM
It appears that nesting PageLayout controls (for example parent in Master page and child in Content page) causes the child control to be padded on all sides by roughly 20-30 px. What is the cause and a solution?

1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 07 Apr 2015, 08:26 AM
Hi Greg,

Thank you for contacting Telerik support.

To remove an additional padding, you can apply a custom CSS class to the parent row and use it in a CSS selector to reset the paddings:
aspx:
<telerik:LayoutColumn CssClass="content"

CSS:
html .customClass,
html .customClass .t-col
 {
    padding: 0;
}

If the RowType property of a child row is set to "Container", it is necessary to reset paddings also for the .t-container element:
html .content .t-container {
    padding: 0;
}


We have attached a sample project with applied solution.

Regards,
Magdalena
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
PageLayout
Asked by
Greg
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Share this question
or