Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Positioning tabs within a relative container

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
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
Close
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
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back