.messageNoticebar{ box-shadow: 1px 1px 14px -1px #767272; position: fixed; left: 0; right: 0; top: 0; z-index: 99999; opacity:0; background: #FCF6ED; .content{ display: flex; flex-flow: row nowrap; align-items: center; position: relative; .noticebar{ position: absolute; z-index: 1; right: 20px; } } }