Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
In mvc 3 razor view I'm trying to make changes in the my header table. the following is the one in the site.css.

CSS
table th {
    padding: 6px 5px;
    text-align: left;
    background-color: #e8eef4;
    border: solid 1px #e8eef4;
    font-weight: bold;

}
I tried changing colors but it does not do anything but it stays the same. No changes are made why is that...
but making changes in table element ( in site.css) get affected.
CSS
table {
    border: solid 1px #e8eef4;
    border-collapse: collapse;
    font-size: 120%; width: 100%;
    border-spacing: 0px;
    background-color: #e7e7e7;
    color: #666;
    clear: both;
    

}
Posted
Updated 20-Feb-18 0:20am
v2
Comments
Wendelius 3-Jan-12 10:24am    
Pre tags added
Ed Nutting 3-Jan-12 12:52pm    
Try clearing your browser's cache - usually the problem.
Sergey Alexandrovich Kryukov 3-Jan-12 13:00pm    
Do you mean "static" change (on modification of the site content)? Or dynamic change in your Web application? (In this case, you need to show your code.)
--SA

1 solution

Are you using the <th> element in your html? If not, then that is why the <table> element shows the changes.
The first style is restricted to th sub-elements of table, not the table itself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900