How do I show :before pseudo-element with negative absolute position in IE

andycarlberg

I have an absolute positioned ::before pseudo-element that I am trying to add an arrow above with CSS. Specifically this arrow appears on hover.

In all browsers except IE, this works fine. In IE, the pseudo-element appears on hover but is "behind" the button's parent div. This makes it appear as if the arrow doesn't show at all.

The z-index property seems to have no effect. I have a jsfiddle set up here:

https://jsfiddle.net/gk8rsjkp/

I appreciate any suggestions.

andycarlberg

For anyone who comes across this with a similar problem:

Using an actual button element caused the issue. Switching to a div solved the problem. This quirk seems to be limited to IE.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to absolute position :before pseudo element of child relative to parent?

From Dev

Absolute Position Issue with :before pseudo element with IE 11< vs. all other browsers

From Dev

Position absolute in pseudo element of blockquote

From Dev

How do I make pseudo element :before stay active?

From Dev

CSS animation of pseudo element works in Chrome and IE, but is stationary in Safari and Firefox without "position: absolute"

From Dev

vertical align in pseudo-element with absolute position

From Dev

How to center a “position: absolute” element in IE 9,10,11

From Dev

How to center a “position: absolute” element in IE 9,10,11

From Dev

Pseudo class after/before displays with position static but not position absolute

From Java

How do I add / insert a before or after pseudo element into Chrome's Inspector?

From Dev

jQuery: mouseup + position: absolute + show(). Problems in IE

From Dev

In IE11 using pseudo element ::before and display:table-cell and glyphicons contens wont show up

From Dev

IE doesn't show :after pseudo element

From Dev

How do you get an indentation after ::before pseudo element?

From Dev

How could I use pseudo-element :after :before conditionally

From Dev

How to vertically (middle position) align pseudo-element 'before' for LI element

From Dev

Position Absolute: Negative Values

From Dev

How to position the element using absolute position?

From Dev

How to set :disabled pseudo element/class on :before pseudo element

From Dev

How do I to show images before upload?

From Dev

How do I style part of the pseudo element content: "..."

From Dev

How do I resize an image in a pseudo-element?

From Dev

How do I vertically center a pseudo element image in CSS?

From Dev

How do I override CSS set on a pseudo element?

From Dev

How do i position this element relative to an image?

From Dev

How do I get faceted barplot values to show as negative

From Dev

How to use character code with ::before pseudo element

From Dev

Getting element offset returns same values before setting position: absolute

From Dev

How to use absolute position relative to parent element

Related Related

  1. 1

    How to absolute position :before pseudo element of child relative to parent?

  2. 2

    Absolute Position Issue with :before pseudo element with IE 11< vs. all other browsers

  3. 3

    Position absolute in pseudo element of blockquote

  4. 4

    How do I make pseudo element :before stay active?

  5. 5

    CSS animation of pseudo element works in Chrome and IE, but is stationary in Safari and Firefox without "position: absolute"

  6. 6

    vertical align in pseudo-element with absolute position

  7. 7

    How to center a “position: absolute” element in IE 9,10,11

  8. 8

    How to center a “position: absolute” element in IE 9,10,11

  9. 9

    Pseudo class after/before displays with position static but not position absolute

  10. 10

    How do I add / insert a before or after pseudo element into Chrome's Inspector?

  11. 11

    jQuery: mouseup + position: absolute + show(). Problems in IE

  12. 12

    In IE11 using pseudo element ::before and display:table-cell and glyphicons contens wont show up

  13. 13

    IE doesn't show :after pseudo element

  14. 14

    How do you get an indentation after ::before pseudo element?

  15. 15

    How could I use pseudo-element :after :before conditionally

  16. 16

    How to vertically (middle position) align pseudo-element 'before' for LI element

  17. 17

    Position Absolute: Negative Values

  18. 18

    How to position the element using absolute position?

  19. 19

    How to set :disabled pseudo element/class on :before pseudo element

  20. 20

    How do I to show images before upload?

  21. 21

    How do I style part of the pseudo element content: "..."

  22. 22

    How do I resize an image in a pseudo-element?

  23. 23

    How do I vertically center a pseudo element image in CSS?

  24. 24

    How do I override CSS set on a pseudo element?

  25. 25

    How do i position this element relative to an image?

  26. 26

    How do I get faceted barplot values to show as negative

  27. 27

    How to use character code with ::before pseudo element

  28. 28

    Getting element offset returns same values before setting position: absolute

  29. 29

    How to use absolute position relative to parent element

HotTag

Archive