• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: CSS Style for Dropdown First Child

CSS Style for Dropdown First Child 9 years 11 months ago #31250

Hello,


I am trying to style the first child in a dropdown list. I have tried adding a class to the option tag (.select-option) and I have also tried using a CSS selector ( #Subject > option:nth-child(1) ) but neither of these worked.

Website: Contact form at the bottom of the page.
The administrator has disabled public write access.

CSS Style for Dropdown First Child 9 years 11 months ago #31256

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
You can add the following snippet in the custom.css file of your template. It will change the background color of the first OPTION element from the select list.

#Subject > option:first-child{
background-color:#FFF;
}
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: servlet

CSS Style for Dropdown First Child 7 years 8 months ago #37299

  • servlet
  • servlet's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
How to change background color of second third .... childs
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!