Style input[type=text] for .cart_input only
I want to style the mobile cartQuantity input fields.
I'm able to modify the values with the following entry.
HTML Code:
input.cart_input_303[type=text]{}
How can I set a wildcard for the input[type=text] field for cartQuantity input fields only.
Re: Style input[type=text] for .cart_input only
I was late for edit.
The template is responsive_classic.
Re: Style input[type=text] for .cart_input only
Something like the following should work
Code:
input[class^="cart_input_"] {
border: 3px solid purple;
}
for the shopping-cart page quantity inputs:
Code:
<input type="text" name="cart_quantity[]" value="1" size="4" class="cart_input_1:edff669e5da95c1d027b04d5412532fa" aria-label="Edit quantity in cart">
That CSS rule "says" to apply the styling to any inputs with a class= attribute whose value starts with cart_input_.
See this link for additional ways to identify a CSS selector: https://www.w3schools.com/cssref/css_selectors.php
Re: Style input[type=text] for .cart_input only
That looks very promising.
Thank you very much!
I will take care of it soon.
Re: Style input[type=text] for .cart_input only
It works like a charm and is very useful to style mobile cart for responsive_classic