Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Css 3 Transitions multi-level z-index

Would like to check, I am making a scrolling color <div> which slides color during input:focus but how should I code it so that the scrolling color is above the grey background and below the input field and action button?

Also if you notice, the scrolling part also seems to be scrolling out of the predefined space. I have already set the width to maximum 100% but somehow the fade out part is over the 100% width.

Here is the JSFiddle sample.

like image 839
Kenny Yap Avatar asked Nov 17 '25 08:11

Kenny Yap


1 Answers

Add overflow: hidden; to .commentPost, and position:relative to .commentPostBox and the <span> element. You only need to set z-index to 2: 1000 is a bit excessive.

like image 117
jaunt Avatar answered Nov 21 '25 08:11

jaunt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!