Select list arrow styling

  • kaposvaruniversity
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0

kaposvaruniversity created the topic: Select list arrow styling

Hi! I would like to set style of the small arrow witch appear on right of the select list label. I tried to inspect it, but don't show me the css code... please tell me where can I set the style of these element? It's strange because it appears different on android and on apple. Thanks
#235540
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: Select list arrow styling

Hello,

You can change the styling of select list elements in your form by following these instructions.

Go to form's Advanced properties > More options > Form pieces and in the Before Form section set Type to Custom.
In the code area below put the following code:
echo '<style>
select#ff_elem3214 {
width: 268px;
padding: 5px;
font-size: 16px;
line-height: 1;
border: 1;
border-radius: 5px;
height: 34px;
background: url( cdn1.iconfinder.com/data/icons/cc_mono_i...ks/16x16/br_down.png ) no-repeat right #ddd;
-webkit-appearance: none;
background-position-x: 244px;
}
</style>';
This is an example of styling the select list. You can add here styling that you want.

If you for example set:
-webkit-appearance: none
without setting the background the small arrow will not be displayed at all.

Adjust here the CSS to how you want the list to look like.

Regards,

Mihaela
#235552
  • kaposvaruniversity
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0

kaposvaruniversity replied the topic: Select list arrow styling

Sorry, I don't really understand. My problem is that I don't know where is the code, in which css contains it? (the style of the arrow) because this arrow is different in other browsers and devices - in apple it's green, in iphone it's white and small, and in windows browsers it's normal black. What cause this?
#235559
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: Select list arrow styling

Hello,

The Breezing forms use standard select lists. The drop-down arrow that you don't like, is not modified by Breezing forms. Each browser renders that arrow in its own way. Unfortunately, Breezing forms don't offer a direct way to customize the way it will look like.


Either way, you can try to add some styling to it, but I am not sure how it will be displayed on each browser/device.

As explained in the previous topic, you could add code like this:
echo '<style>
select#ff_elem3214 {
width: 268px;
padding: 5px;
font-size: 16px;
line-height: 1;
border: 0;
border-radius: 5px;
height: 34px;
background: url( cdn1.iconfinder.com/data/icons/cc_mono_i...ks/16x16/br_down.png ) no-repeat right #ddd;
-webkit-appearance: none;
background-position-x: 244px;
}

</style>';
NOTE: ff_elem3214 has to be replaced with the ID of your select list element.

Regards,

Mihaela
#235572
  • kaposvaruniversity
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0

kaposvaruniversity replied the topic: Select list arrow styling

Thank you, I try it. If I have more (a lot of) select list in my form, can I add more element name (ID) or must add this code more time with the different IDs?
#235573
  • Posts: 2461
  • Karma: 86
  • Thank you received: 333

mihaela replied the topic: Select list arrow styling

Ok, I hope that it will work for you.

You can try to use a selector like this:
select#ID1 , select#ID2, select#ID3{ ...

Also, yon use selector like:
select { ...
to affect all select list elements.

Regards,

Mihaela
#235574
Moderators: ForumSupporttomeperica
Time to create page: 0.069 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here