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

  • SEARCH
  • Home
  • 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 8228141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:21:54+00:00 2026-06-07T16:21:54+00:00

Source : http://twitter.github.com/bootstrap/components.html#navbar To make the little black triangle for the drop down menus,

  • 0

Source : http://twitter.github.com/bootstrap/components.html#navbar

To make the little black triangle for the drop down menus, Twitter is using the following CSS:

.caret 
{
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: top;
    border-top: 4px solid black;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: "";
    opacity: 0.3;
    filter: alpha(opacity=30);
}

I tried using <b class="caret"></b> but the color is gray. If you are on a Twitter Bootstrap page and remove the content: “” the triangle will be gray as well. If I add the code in HTML style tag

<b style="-the code-"></b> is black as it should be. Why is this happening ?

Update:

The code is the same but when it is in a CSS file the opacity: 0.3 is the one that makes the triangle gray, but still why this is not happening in the HTML style tag?

  • 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-07T16:21:55+00:00Added an answer on June 7, 2026 at 4:21 pm

    It doesn’t turn grey because you’re including

    content: "";
    

    into

    <b style="-the code-"></b>
    

    and the double quotes are interfering. To fix it do

    <b style="... content: ''; ..."></b>
    

    That will work – DEMO

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

Sidebar

Related Questions

This is what I'm referring to: http://twitter.github.com/bootstrap/components.html#badges Is badge the commonly agreed upon term?
When I'm looking at Spring Source site I see js widget which requests http://search.twitter.com/search.json
I've tried a couple of ways ( http://emmense.com/php-twitter/ and http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/ ) to post updates
Original source: http://twitter.com/tobeytailor/status/8998006366 (x=[].reverse)() === window // true I've noticed that this behavior affects
Twitter has open sourced their Mysql source code. This blog post http://engineering.twitter.com/2012/04/mysql-at-twitter.html mentions the
I'm using a MediaElement with this source: http://origin-community.ministryofsound.com/asx/radio/mosRadio.asx When I open it with Windows
Take a look at this snazy plugin: http://remysharp.com/2007/12/28/jquery-tag-suggestion/ ** it's real small Source: http://remysharp.com/downloads/tag.js
(Citing source at: http://jqueryui.com/demos/dialog/#modal-form ) As an example, this works great but each time
If you view source on http://seeitornot.co/prometheus/771228969 , you'll see html in the including the
This is the complete source code: http://www.sendspace.com/file/lwxpyf I have a problem with a JSF

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.