Bug Report B201708
Visible to All Users

ASPxTextBox - Font Size with em stopped working

created 14 years ago

CSS styling with font size in ems stopped working.
    .aspxtextbox input
    {
           background-color:white;
           font-size:1em;
           font-family:Arial;
           height:20px!Important;
            color:#0000cc!important; /*blueish*/
    }
aspxtextbox with this CSS styling stopped working. Font size so small that not letters showing.
Changing to font-size: large;
Or somthing fixes problem, but we have always used ems in all our font sizing in our project
The textbox is 20px in height, but font size is som small it can only be seen as a dot.

Comments (1)

    By the way, this has worked fine in all previous versions.

    Answers

    created 14 years ago

    Hello Odd-Inge,
    Please accept our apologies for the delay in responding. We have researched this issue and found out that it is caused by the implementation of the Support "Strict" DOCTYPE for all ASPx controls (ID: S34767) request:
    Now the container of the <td> tag has the "td.dxic { font-size:0; }" CSS style. To resolve this issue, override the mentioned class in the following manner:

    CSS
    td.dxic { font-size:inherit !important; }

    Regards,
    Mike

      Comments (2)

        Thank you. This solved the problem with 0 font size inside my textboxes.
        Just discovered a similar problem. Inside my grids I have custom images for checkboxes:
                            <dxwgv:GridViewDataCheckColumn
                                Caption="Cert. Staff"
                                FieldName="isRightToSignAsCertifyingStaff"
                                ShowInCustomizationForm="False"
                                Visible="true" width="100px"
                                VisibleIndex="20"
                                ToolTip="Right to sign as Certifying Staff">
                                <PropertiesCheckEdit DisplayImageChecked-Url="…/…/Images/CheckBoxNoBorderOn.gif" DisplayImageUnchecked-Url="…/…/Images/CheckBoxNoBorderOff.gif"/>
                                <CellStyle HorizontalAlign="Center"></CellStyle>
                                <EditFormSettings Visible="False"/>
                                <PropertiesCheckEdit ValueChecked="true" ValueUnchecked="false"></PropertiesCheckEdit>
                            </dxwgv:GridViewDataCheckColumn>
        This has worked fine until this last version. Now all my checkboxes seemed to dissapear. But if I set width and height explicit on them the custom checkbox is again visible. So the size for the checkbox image has suddenly become 0?
        Can this be fixed in my CSS file so I do not have to set W/H on every checkbox control inside a grid?
        This has worked fine until latest version.

        DevExpress Support Team 14 years ago

          Hello Odd-Inge,
          Thank you for informing us that the problem has been resolved. We are glad that you have found our assistance useful. If you need any further help, please feel free to reactivate this ticket.
          To process your reports more efficiently, we have opened a new ASPxGridView - A check box does not display a custom image in GridViewDataCheckColumn thread for your last question.
          Thanks,
          Jenny

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.