Elliot Lombardo
Posts: 0
Joined: Thu Jan 29, 2015 7:16 pm

How to target dsid in css?

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"?

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

How to target dsid in css?

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

Elliot Lombardo
Posts: 0
Joined: Thu Jan 29, 2015 7:16 pm

How to target dsid in css?

Very simple. Thank you!

Return to “Issues”