If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
I am not sure if this is a good practice, if it is cross-browser or anything else - but it worked and I thought it was cool.
Our store shipping uses the Advanced Shipping Manager and I have one method for free shipping. I wanted to style the option in the drop down - too call attention to it when available. The returned method values were like ADVANCEDSHIPPING:1, ADVANCEDSHIPPING:2, which were not constant values since the shipping methods returned vary depending on the items in the cart -stymieing my attempt to use a class like class="ADVANCEDSHIPPING:1" for example.
Anyway I was playing with some of the CSS selectors and this seems to work - at least in Firefox
I know, not rocket science but it was cool to find something simple that seems to work (will test other browsers) as the javascript and jquery solutions seemed like overkill.
Seedbox and private cloud server from $5/mo on a 10 Gbps network. 100+ one-click app installers: Plex, Sonarr, Nextcloud and more. Live in 60 seconds, 7-day money-back.
Should be fine on any HTML5 compatible browser...at the very least, in lesser browsers, it will do no harm. (BTW: you definently shouldn't use ':' in a class selector though :) )
I am not sure if this is a good practice, if it is cross-browser or anything else - but it worked and I thought it was cool.
Our store shipping uses the Advanced Shipping Manager and I have one method for free shipping. I wanted to style the option in the drop down - too call attention to it when available. The returned method values were like ADVANCEDSHIPPING:1, ADVANCEDSHIPPING:2, which were not constant values since the shipping methods returned vary depending on the items in the cart -stymieing my attempt to use a class like class="ADVANCEDSHIPPING:1" for example.
Anyway I was playing with some of the CSS selectors and this seems to work - at least in Firefox
I know, not rocket science but it was cool to find something simple that seems to work (will test other browsers) as the javascript and jquery solutions seemed like overkill.
Leave a comment: