How to leave the position of a fixed div according to the RaddioButton change

1

I have the following screen that as soon as you change the option from RaddioButton to div descends or rises. I would like to know how to leave fixed in a position.

Cycle Selected:

SelectingtheYear:

aspx:

<divid="indicadores" style="display: none; margin-left: 447px; margin-top: -50px; height: 39px;" class="divFiltros">
    <asp:Label ID="Label40" runat="server" Width="85px" Style="margin-top: 15px;">TIPO RELATÓRIO</asp:Label>
    <div style="border: solid 2px; height: 28px; width: 314px; margin-left: 115px; margin-top: -27px;">
        <asp:RadioButtonList ID="rdbIndicadores" name="rdbIndicadores" CssClass="radioItens" runat="server" RepeatDirection="Horizontal" Style="width: 319px;">
            <asp:ListItem Text="CICLO" Value="ciclo" Selected="True"></asp:ListItem>
            <asp:ListItem Text="ANO" Value="ano"></asp:ListItem>
        </asp:RadioButtonList>
    </div>
    <br />
</div>

css:

<style type="text/css">
.radioItens label {
    margin-left: -105px;
    display: block;
    text-align: right;
    width: 145px;
    margin-top: 3px;
}
    
asked by anonymous 29.08.2017 / 15:56

1 answer

1

Try changing the position and remove the label, as I have not identified any label elements inside your radioItems

.radioItens{
    position: relative;
    margin-left: -105px;
    display: block;
    text-align: right;
    width: 145px;
    margin-top: 3px;
}
    
29.08.2017 / 16:10