Positioning tabs within a relative container

SpaceshipSpaceship
Watch

VaporAction

Established Member
Impact
0
I'm trying to make a site that has a centered page with centered navigation tabs at the top very similiar to...
http://www.apple.com

the part that is messing me up is the background image behind the tabs...

I can't seem to get the tabs to overlap the background image without using position: absolute...

if I use position absolute then the tabs don't stay in the right position with my relatively positioned page...

here's a diagram (just for example, not real html)

<div container position: relative; margin: auto;>
<div tabs background>
<div navigation tabs>
</div>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back