is it possible to add a 'sub class' to an ID?
-
i am using the lightbox plus plugin to open content in a lightbox with the code:
<a class="lbpModal" href="link.html">link text</a>
the styling of the lightbox that is opened is controlled by the plugin which outputs the following in the head:
<link rel='stylesheet' id='lightboxStyle-css' href='https://www.site-name.com/wp-content/lbp-css/elegant/colorbox.css?ver=2.0.2' type='text/css' media='screen' />
there is no way to change this reference to the stylesheet as it is generated by the plugin.
this head reference directs to wp-content/lbp-css/elegant/colorbox.css
and in this file there are ID’s defined such as:
#cboxLoadedContent{margin-bottom:28px;} #cboxTitle{position:absolute; bottom:3px; left:0; text-align:center; width:100%; color:#949494;} #cboxCurrent{position:absolute; bottom:3px; left:58px; color:#949494;}
what i am trying to do is make one link launch a lightbox that has a slightly different style to another lightbox.
so my question is – is there a way to add a ‘sub class’ to a link and then reference it in the style sheet with something like:
<a class="lbpModal subClass" href="link.html">link text</a>
whilst the css would contain:
#cboxLoadedContent{margin-bottom:28px;} #cboxLoadedContent .subClass{margin-bottom:0px;}
any information would be much appreciated.
thank you.
- The topic ‘is it possible to add a 'sub class' to an ID?’ is closed to new replies.