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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:02:00+00:00 2026-06-09T17:02:00+00:00

Wondering if anybody can help with a css problem I’m having.. see this jsbin:

  • 0

Wondering if anybody can help with a css problem I’m having.. see this jsbin:
http://jsbin.com/uviyat/2/edit

Notice ‘Longer Wording Example’ – how can I get the triangle arrow indicator to scale vertically to dynamically fill the selected blue area height? (The triangle is generated in the last css rule..)

I’m stumped! Anybody got any ideas?

Thanks in advance..

EDIT – since Zoltans’s answer, I’ve had a go with Jquery here:
http://jsbin.com/uviyat/12/edit
Not sure if its the best way to do it? Where does the value ’16’ come from?

  • 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-09T17:02:03+00:00Added an answer on June 9, 2026 at 5:02 pm

    You can’t auto stretch the triangle. The simplest way to accomplish what you want is, probably, to define a small subclass for taller menu items – http://jsbin.com/uviyat/3/edit

    <li class="selected tall"><a href="#">Longer  Wording Example</a></li>
    
    <style>
    .filters .selected.tall:after {
      margin-top: -36px;
      border-width: 20px 0 20px 7px;
    }
    </style>
    

    …

    UPDATE

    Alternatively you can use the CSS3 background-size: cover on the :after pseudo-element. But in that case you have to create an image of the triangle and set it as a background. Here is a DEMO

    li {
        width: 100px;
        border: 1px solid #eee;
        margin: 3px;
        position: relative;
    }
    
    li:after {
        content: ' ';
        display: block;
        position: absolute;
        right: -20px;
        width: 20px;
        top: 0;
        bottom: 0;
        background: url(http://lorempixel.com/20/20) no-repeat;
        background-size: cover;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody help me with this? Here's the problem... When I have to code
I'm wondering if anybody can help? I have a large number of excel files.
I was wondering if anybody can help me to write a javascript code that
I've been hard at this problem for a bit and am wondering if anybody
Im just wondering if theres a recommended syntax validator out there anybody can recommend?
I was wondering if anybody could help me with a method of creating a
I am new to php and was wondering if anybody could help me with
I'm writing an asp.net mvc app. in c#, and I'm wondering if anybody can
Wondering if anybody knows where I can find any high resolution pictures for iPhone,
Was just wondering if anybody can look at the following code and explain to

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.