Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS apply style on Html elements for a specific DIV ID

Tags:

html

css

I have this css code but does not work as expected.

My aim is to applying attributes on tags: table tbody tr td on a speific table only.

Do you have an idea what I'm doing wrong? Thanks for your help

#MainContent_uxTreeView table tbody tr td
{
    border-collapse:collapse;
    border-spacing: 0px;
    margin:0px;
    padding:0px;
}
like image 679
GibboK Avatar asked Oct 21 '25 10:10

GibboK


1 Answers

If I understood your problem:

table#MainContent_uxTreeView tbody tr td

If you want the css to be applied to every tag from list, write them separated by comma:

#MainContent_uxTreeView table,
#MainContent_uxTreeView tr,
#MainContent_uxTreeView td
{
}
like image 124
Sergey Metlov Avatar answered Oct 23 '25 03:10

Sergey Metlov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!