Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9306339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:09:03+00:00 2026-06-19T00:09:03+00:00

I have this mark us <div class=styled-offer> <select style=font-size:13px; class=select offer-select name=type> <option selected=

  • 0

I have this mark us

<div class="styled-offer">
  <select style="font-size:13px;" class="select offer-select" name="type">  
    <option selected="" class="selected" value="1">Sell Offers</option>
    <option value="2">Buy Offers</option>
    <option value="3">Products</option>
    <option value="4">Companies</option>
    <option value="5">Business Directory</option>
    <option value="6">Classified</option>
  </select>
</div>

Now here you can see the first option which is selected is Sell Offers. Now I want the selected option should be in red color and all rest of options should be in black color. Just like this site. Here you can see the option products is by default blue in color and when you click on the options they are black in colors. So I just want this. I want to make it in css. Not in jQuery. So can someone kindly tell me how to do this? Any help and suggestions will be really appreciable.

Update
Sorry..I can’t change my markup So kindly guide me in this markup…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T00:09:04+00:00Added an answer on June 19, 2026 at 12:09 am

    Hey thanks all for all of your answers but finally I got the solution. It was damn easy…
    My markup was like this

    <div class="styled-offer">
      <select style="font-size:13px;" class="select offer-select" name="type">  
        <option selected="" class="selected" value="1">Sell Offers</option>
        <option value="2">Buy Offers</option>
        <option value="3">Products</option>
        <option value="4">Companies</option>
        <option value="5">Business Directory</option>
        <option value="6">Classified</option>
      </select>
    </div>
    

    Now my css will be like this..

    <style type="text/css">
      .styled-offer select.offer-select {
        color: #F00;
      }
      .styled-offer select.offer-select option {
        color: #333;
      }
      </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some mark up like this: <div id=columns> <ul id=column1 class=column> <li class=widget
I have this mark-up: <div> TEXT <a class=toggle-action> TOGGLE </a></div> <dl class=collapsed> ... </dl>
I have the following mark-up: <fieldset> <div> <label class=editor-label>Question 1?</label> <input type=text class=editor-field />
I have @hash that looks like this: [1, {:clid=>1, :nvz=>4, :tip=>IP, :name=>Mark, :record=>some text}]
I have this div: <div class=main_mark> <img src=/assets/welcome_main.png alt=main class=main_mark_image /> </div> I want
This is the code HTML <div id=footmain> <div id=col1 class=mark></div> <div id=col2 class=mark></div> <div
In my application I have a mark up like these <div id=divLeft style =
I have the following html form <div> <p>Field1</p> <input type=text name=fld_one id=fld_one value= />
In Hotspot, when System.gc() is invoked, I can have this use the Concurrent-Mark-Sweep collector
I have created an array in php that prints this Array ( [mark] =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.