2 replaced http://stackoverflow.com/ with https://stackoverflow.com/
source | link

you need to go through the tree, if that makes any sense?

so if you have id as follows

webpart -> table -> button

you would do the css the same to target the webpart with specific id only!

#webpart .table tr td .button

The first part is to get to the nearest unique id, ids need to be unique and you wont find them anywhere else, I said webpart id as its a safe bet it will be unique! but then you need to go down the tree of class names to the control you want changing!

any other way? yes if you create the webpart yourself and say you have a custom list using splistview it would create a table format in css that would be used thoughout the page... to get around this i would encapsulate it within a div and give the div a unique id that i can call and manipulate accordingly by the method above!

somthing similar someone asked a question is how you want to do it.

http://stackoverflow.com/questions/9020190/how-to-target-and-style-specific-elements-using-csshttps://stackoverflow.com/questions/9020190/how-to-target-and-style-specific-elements-using-css

you need to go through the tree, if that makes any sense?

so if you have id as follows

webpart -> table -> button

you would do the css the same to target the webpart with specific id only!

#webpart .table tr td .button

The first part is to get to the nearest unique id, ids need to be unique and you wont find them anywhere else, I said webpart id as its a safe bet it will be unique! but then you need to go down the tree of class names to the control you want changing!

any other way? yes if you create the webpart yourself and say you have a custom list using splistview it would create a table format in css that would be used thoughout the page... to get around this i would encapsulate it within a div and give the div a unique id that i can call and manipulate accordingly by the method above!

somthing similar someone asked a question is how you want to do it.

http://stackoverflow.com/questions/9020190/how-to-target-and-style-specific-elements-using-css

you need to go through the tree, if that makes any sense?

so if you have id as follows

webpart -> table -> button

you would do the css the same to target the webpart with specific id only!

#webpart .table tr td .button

The first part is to get to the nearest unique id, ids need to be unique and you wont find them anywhere else, I said webpart id as its a safe bet it will be unique! but then you need to go down the tree of class names to the control you want changing!

any other way? yes if you create the webpart yourself and say you have a custom list using splistview it would create a table format in css that would be used thoughout the page... to get around this i would encapsulate it within a div and give the div a unique id that i can call and manipulate accordingly by the method above!

somthing similar someone asked a question is how you want to do it.

https://stackoverflow.com/questions/9020190/how-to-target-and-style-specific-elements-using-css

1
source | link

you need to go through the tree, if that makes any sense?

so if you have id as follows

webpart -> table -> button

you would do the css the same to target the webpart with specific id only!

#webpart .table tr td .button

The first part is to get to the nearest unique id, ids need to be unique and you wont find them anywhere else, I said webpart id as its a safe bet it will be unique! but then you need to go down the tree of class names to the control you want changing!

any other way? yes if you create the webpart yourself and say you have a custom list using splistview it would create a table format in css that would be used thoughout the page... to get around this i would encapsulate it within a div and give the div a unique id that i can call and manipulate accordingly by the method above!

somthing similar someone asked a question is how you want to do it.

http://stackoverflow.com/questions/9020190/how-to-target-and-style-specific-elements-using-css