Thread: Css override

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Css override


    i have project in asp.net which generates DataGrid (table).
    this table don't have thead so i added it using jquery.
    the next step that i want the thead to have the same class like the rest of the table.
    in the css i have :
    Code:
    #Content-style thead th
    {
    	font-size: 14px;
    	font-weight: bold;
    	padding: 4px;
    	background: #b9c9fe url('images/gradhead.png') repeat-x;  /* G1002 צבע כותרת  */
    	border-top: 2px solid #d3ddff;
    	border-bottom: 1px solid #fff;
    	color: #039;  /* G1003 צבע טקסט של כותרת  */
    }
    .GridPanel-TextHeader td,th
    {
    	background: #b9c9fe url('images/gradhead.png') repeat-x; /* G1002 צבע כותרת */ 
    	font-size: 12px;
    	font-weight: bold;
    	color: #039; /* G1003 צבע טקסט של כותרת */ 
    }
    in the datagrid i try to do :
    Code:
    <thead style="position:absolute;">
    <tr clsss="GridPanel-TextHeader">
    <th style="width: 118px;">כתובת דוא''ל</th>
    <th style="width: 158px;">שם שולח</th>
    <th style="width: 58px;">ספק</th>
    <th style="width: 58px;">חשבון</th>
    <th style="">סטטוס</th>
    <th style=""> </th>
    </tr>
    </thead>
    when i look at the firebug isee it uses
    "thead th" and not "GridPanel-TextHeader"!
    why this happens?
  2. #2
  3. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    6,029
    Rep Power
    4101
    Because of the Specificity of the rules
    Recycle your old CD's



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    can i change this?


    maybe by putting styl tag in the page itself and creating new class?

IMN logo majestic logo threadwatch logo seochat tools logo