.header-bg{ background: linear-gradient(to bottom, #FFD700, #FFA500); height: 335px; width: 100%; top: 0; position: absolute; z-index: 0; } .header-bg2{ background: linear-gradient(to bottom, #FFD700, #FFA500); height: 200px; width: 100%; top: 0; position: absolute; z-index: 0; }