Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I override an inline style with an external css?

Tags:

css

asp.net

I am trying to restyle a table generated by an asp.net gridview control. The problem I have is that the gridview is generating an inline styles. How do I make the browser render my css rather then the html style attribute?

like image 349
Aaron Fischer Avatar asked Jan 21 '09 15:01

Aaron Fischer


2 Answers

You can try !important in your CSS file.

like image 133
DavGarcia Avatar answered Nov 15 '22 07:11

DavGarcia


You can use !important; but that doesn't work in all browsers.

Here is an article on the usage of !important.

like image 20
Mitchel Sellers Avatar answered Nov 15 '22 08:11

Mitchel Sellers