Другой вариант - использовать один из моих любимых инструментов CSS: box-shadow
.
Тень от блока - это действительно тень на узле.Выглядит это так:
-moz-box-shadow: 1px 2px 3px rgba(0,0,0,.5);
-webkit-box-shadow: 1px 2px 3px rgba(0,0,0,.5);
box-shadow: 1px 2px 3px rgba(0,0,0,.5);
Аргументы:
1px: Horizontal offset of the effect. Positive numbers shift it right, negative left.
2px: Vertical offset of the effect. Positive numbers shift it down, negative up.
3px: The blur effect. 0 means no blur.
color: The color of the shadow.
Итак, вы можете оставить свой текущий дизайн и добавить тень от блока:
box-shadow: 0px -2px 2px rgba(34,34,34,0.6);
Это должно дать вам размытый верхний край.
Этот сайт поможет с дополнительной информацией: http://css -tricks.com / snippets / css / css-box-shadow /