locked
Span and Text Aligned RRS feed

  • Question

  • User1435413075 posted

    Hi

    I got a form made of CSS floating elements

    Name John

    Job: Account

    ...

                <div class="Field150">
                    Name:
                </div>
                <div class="Field150">
                    <asp:Label ID="Name Lb" runat="server" Text=""></asp:Label>
                </div>

    Because then float they are beside each other

    on post back the Label is Chaged into SPAN

    in my CSS in GOT:

    .Field150 span
    {
         color: Blue;
         text-align:left;
    }

    .Field150,
    {
        height: 30px;
        float: left;
        padding-top: 1px;
        padding-bottom: 4px;
        color:Red;
        text-align:right;
    }

    PROBLEM:

    Color RED is overriden in the SPAN by Color BLUE but TEXT-ALLINED is NOT overriden and remained alligned RIGHT??

    Any reason why this happen?



    Wednesday, November 30, 2011 6:49 AM

All replies

  • User1435413075 posted

    move to correct forum

    Wednesday, November 30, 2011 8:08 AM