Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS3 Multiple Columns and position:absolute

I'm using CSS3 Multiple Columns. Inner elements have position:relative and can contain arrows with position:absolute.

.clm3{
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -webkit-column-gap: 0;
  -moz-column-gap: 0;
  column-gap: 0;
}

Problem: CSS3 column cut off part of arrow with position:absolute.

Example: http://jsfiddle.net/k4ucr72h/

like image 459
Тимофей Петров Avatar asked Apr 13 '15 04:04

Тимофей Петров


1 Answers

Try to use this on li items in your column:

.clm3 li {
  -webkit-column-break-inside: avoid;
  -webkit-backface-visibility: hidden; 
}

Also add z-index to .countArrow class:

.countArrow {
  z-index: 1
}
like image 141
k1r8r0wn Avatar answered Sep 22 '22 09:09

k1r8r0wn