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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:39:58+00:00 2026-06-08T06:39:58+00:00

In CSS, there are pseudo elements like before and after. That creates virtual elements

  • 0

In CSS, there are pseudo elements like “before” and “after”. That creates virtual elements before or after an element.

Container pseudo element?

Is there a “container” pseudo element?

Problem example 1:

I need to create 15 borders around an element (I know this particular example can be done by using box-shadow).

Problem example 2:

I need to create 15 transparent background colors on top of eachother.

A lot of unnecessary markup

I know that is possible by adding containing divs, but that creates a lot of unnecessary 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-08T06:40:00+00:00Added an answer on June 8, 2026 at 6:40 am

    The old CSS3 Generated and Replaced Content Module had a proposal for an ::outside pseudo-element which seems close to what you describe, but there are no implementations, and the module itself is slated for a rewrite… someday.

    In other words, there’s currently no way to achieve this using only CSS, and there probably won’t be any for a while.

    Of course, there are ways to emulate wrapping elements using JavaScript to manipulate the DOM, but that’s just about the only way you can achieve this besides hardcoding in the extra markup. Some trivial jQuery methods with respect to the fabled ::outside pseudo-element are described here:

    Enable support for CSS3 ::outside pseudoelement

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

Sidebar

Related Questions

Is there any way to select/manipulate CSS pseudo-elements such as ::before and ::after (and
I am using :after and :before CSS pseudo elements and it is working fine
I was wondering if there's a way to add a CSS class to pseudo-elements,
I'd like to use CSS's :hover pseudo-class to control a drop-down on hover. That's
Is there CSS Meta Framefork for ASP.NET? Something like LESS or xCSS.
Is there any CSS hack to target just browsers that do not support the
Is there a CSS code that changes this text This is it to this
Is there any CSS grid system that supports full viewport width? Most Grid System
Possible Duplicate: Is there a CSS parent selector? CSS selector for “foo that contains
Is there any way only using CSS (no script) to check if an element

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.