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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:51:47+00:00 2026-06-06T22:51:47+00:00

Im having a big headcache with a header design: Here the demo: http://jsfiddle.net/uGECm/ The

  • 0

Im having a big headcache with a header design:

enter image description here

Here the demo: http://jsfiddle.net/uGECm/

The idea is to have the gray label that ‘wrap’ the element; However, the label’s height is unknow (it can vary by its content) – my problem is that the 2 pseudo-elements made like triangles get a wrong position if the labels change the size, this becose they’re position is relative.

Any idea?

ps: im looking for a no-js and no-images solution.

  • 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-06T22:51:49+00:00Added an answer on June 6, 2026 at 10:51 pm
    section h2:before, section h2:after {
        width: 0;
        height: 0;
        display: block;
        position: absolute;
        bottom: 0;
        margin: 0 0 -10px 0;
    }
    
    section h2:before {
        content: '\0000a0';
        border-left: 10px solid transparent;
        border-top: 10px solid #323232;
    }
    
    section h2:after {
        content: '\0000a0';
        border-right: 10px solid transparent;
        border-top: 10px solid #323232;
        right: 0;
    }​
    

    Here’s a fork with some further CSS formatting: http://jsfiddle.net/bqXeJ/

    It’s worth taking a look at a style guide like the one I wrote here, and also, if you use Lea Verou’s prefixfree.js, you can skip writing declarations for each browser vendor.

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

Sidebar

Related Questions

I have a big string having at most 100000 character. Instead of using string.charAt[index]
I’m from a .NET background and now dabbling in Java. Currently, I’m having big
I have a tough problem right now. I am having a big dictionary file
Im having a big issue with static pages on my Magento install. I have
I am having a big problem over here. I am building a webpage having
I am having big problems in fetching exception details from Remote EJBs... I have
I'm having this big dilemma for my project in terms of performance. I have
I'm having big problems doing operation with the date in Excel VBA. I have
I have a large number of resources in my drawable folder.All are having big
I am having a big problem, I checked the redirection of my domain here

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.