Page 1 of 1

How to target dsid in css?

Posted: Sat Jan 31, 2015 3:36 am
by Elliot Lombardo

I'm trying to style a custom component but the classes and ids change dependent on the page it's on. Is it possible to style a custom component based on the "dsid"?


How to target dsid in css?

Posted: Sat Jan 31, 2015 3:59 am
by M&M

I use this way to refer to a particular component in my css file

// Component name: mobilecontainerTest
[dsid="mobilecontainerTest"] {
background-image:url("../image/cloudlocater_splash_map.jpg");
background-repeat:no-repeat;
background-size:cover;
}

That should work for you


How to target dsid in css?

Posted: Sat Jan 31, 2015 4:18 pm
by Elliot Lombardo

Very simple. Thank you!