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 6593123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:38:30+00:00 2026-05-25T17:38:30+00:00

I want put CSS generated content in select box, and rotate it with CSS.

  • 0

I want put CSS generated content in select box, and rotate it with CSS. When I try, it rotates the select box and the generated content, but the generated content ends up outside the select box.

How can I fix it?

Jsfiddle DEMO

<div class="styled-select">
    <select>
        <option>Here is the first option</option>
        <option>The second option</option>
    </select>
</div>
.styled-select select {   
   padding: 5px;
   border: 1px solid #ccc;
   font-size: 16px;
   height: 34px;
   -webkit-appearance: none;
   margin: 100px;

/*following here

    content: "»";

    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    */
}
.styled-select select:after {
    content: "»";
    display: block;
    writing-mode: tb-rl;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    position: absolute;
    bottom: 9px;
    font-size: 24px;

    /* Internet Explorer */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
  • 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-05-25T17:38:31+00:00Added an answer on May 25, 2026 at 5:38 pm

    I don’t think you can put generated content inside a <select> element. Form controls are generally rendered by the operating system rather than the browser, or at least aren’t rendered in the same way as other HTML elements (because they’re more complex than CSS can describe on its own).

    If you want heavily customised <select> elements, you’re going to have to build them yourself out of other HTML elements and JavaScript — but I wouldn’t advise that, as it’s a lot of work, and you’ll need to apply the correct ARIA attributes to make it even theoretically accessible.

    You might have to settle for the same <select> elements we all muddle through with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hey, hi i want put limit on object creation means a class can have
I'm very new at CSS and i want to put a header on to
i have a php page it have css script. i want to put menubar
I want put this two value together (Side by side), as following image, but
I want to have different size maps on differernt pages...but i can't see to
newbie to z-index. I want to put backleftBox and backrightBox behind the frontBox, but
I have nav a bar on my site but I want to put rounded
I want put content li in 2 column and want use of float:right; in
I want to put a css tooltip on links inside a table. Here's my
I want to put padding on a css border. Pull it inside a div,

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.