Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When a thumb image is clicked, a horizontal line appear on left side of a popup image. it happens because i added a box-shadow to img css. i am practicing using a flex, problem not occured when flex is disabled. how to fix it..

This is my codepen for a code: [^]

What I have tried:

I've tried disabling a flex, it's going fine. but this is not what i want.
i want a horizontal line don't appear as a flex is enabled.
need help..
Posted
Updated 5-Sep-20 1:36am
Comments
Sandeep Mewara 21-Aug-20 0:20am    
Did you checkout: https://scrimba.com/g/gflexbox
Sandeep Mewara 21-Aug-20 0:50am    
BTW, when I checked codepen, I don't see any horizontal line in FF. Though an extra 'x' on left side (total two 'x', one on left side and another next to image)

Looked like a bug with flex.
Dec Fathani 21-Aug-20 1:53am    
this is how it look like on my computer [^]

i've checked your link suggestion, this will help me learning flex. thanks
Sandeep Mewara 21-Aug-20 2:12am    
That line is not there when I view in codepen. I have extra x instead.

My suspect is a bug in flex. I will still wait for anyone else to comment on it.
Sandeep Mewara 21-Aug-20 2:12am    
Good to know this will help :)

:thumbsup:

1 solution

i know why my page doesn't show correctly. something wrong with my code and figure it out. i change a selector '.overlay img' to '.overlay:target img'. my page looks as the way i want
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900