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

[Solved] PopupForm alignment messed up (css margins)

0 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan Miser
Top achievements
Rank 1
Dan Miser asked on 14 Jan 2011, 05:06 AM
Using the Site.css that comes with a vanilla MVC app, they have CSS that reads like this:
.display-label,
.editor-label
{
    margin: 1em 0 0 0;
}

.display-field,
.editor-field
{
    margin:0.5em 0 0 0;
}

That appears to wreak havoc on the formatting and alignment of a popup form from a Telerik grid. I added the margin attributes below and things lined up again like they do in our demos. It might be nice to add that to your codebase so the conflict isn't apparent right out of the box.

    .t-edit-form-container .editor-label,
    .t-edit-form-container .editor-field
    {
        padding-bottom: 1em;
        float: left;
        margin: 0;
    }
    
    .t-edit-form-container .editor-label
    {
        width: 30%;
        text-align: right;
        padding-right: 3%;
        clear: left;
        margin: 0;
    }
    
    .t-edit-form-container .editor-field
    {
        width: 60%;
        margin: 0;
    }
Tags
Grid
Asked by
Dan Miser
Top achievements
Rank 1
Share this question
or