ASP.NET - Ajax Calendar Extender CSS Inheritance from a Table

I have an asp table with headers, I also have rows, and on one of the rows I have a cell with n Ajax calendar expander attached to the text field.

Unfortunately, when I open the calendar expander, it does not display correctly, and the overlay is too large on it.

I researched which CSS styles were applied and it seems to inherit the indentation from the table.

Here is the css from the table:

.accountorderstbl {font-family:"Lucida Sans Unicode", "Lucida Grande", Sans-Serif;font-size:12px;width:100%;text-align:center;border-collapse:collapse;}
.accountorderstbl th{width:20%;font-size:13px;font-weight:normal;border-bottom:1px solid #fff;color:#039;padding:8px;background:url("Images/pattern-head.png");}

.accountorderstbl tfoot td{width:20%;font-size:13px;font-weight:normal;border-bottom:1px solid #fff;color:#039;padding:4px;background:url("Images/pattern-head.png");}

.accountorderstbl tr.unselected td{width:20%;border-bottom:1px solid #fff;color:#669;border-top:1px solid transparent;padding:8px;background:url("Images/pattern_blue.png");}
.accountorderstbl tr.selected td{width:20%;border-bottom:1px solid #fff;color:#669;border-top:1px solid transparent;padding:8px;background:#E3E3F1;}

.accountorderstbl tbody tr.unselected:hover td{color:#339;background:#fff;}
.accountorderstbl tbody tr.selected:hover td{}

.accountorderstbl a{ text-decoration: none;color:#669;font-weight:bold;}

I thought adding this css line would fix it

.ajax__calendar_container td { padding:0; margin:0;}

but when I look at the applied css, I see that this one also gets an override with .accountorderstbl tr.unselected td , which has an add-on set to 8px

Can anyone help?

+5
1

!important css

.ajax__calendar_container td { padding:0 !important; margin:0 !important; }

!important css. Smashing Magazine

+7

All Articles