Inline style height removed, width is still there

Width is still there because-
-Margin right/left was there for that  specific image imageslider
-So .my-lightbox-parent div width was bigger than the imageslider
-Thus .my-cover width was bigger
--SO in that situation i needed to remove the margin of imageslider
which is inside of .light-box-parent, and also i needed to add margin
left/right for .my-lightbox parent for that specific asset.
- So i needed to write lots of css.
-the inline width solved the problem by reducing the .my-lightbox-parent
width, overflow is not hidden, so my-cover was perfectly matched with
imageslider width without least change of previous codes.