Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
maskenfreiheit
Dec 30, 2004
If I'm using the Coraline theme, how can I center the navbar on my site? I've been screwing with CSS for a half hour now with no luck.

Adbot
ADBOT LOVES YOU

maskenfreiheit
Dec 30, 2004
.

maskenfreiheit fucked around with this message at 21:04 on Apr 28, 2019

maskenfreiheit
Dec 30, 2004

cheesypeanut posted:

code:
#access .menu {
	float: right;
	left: -50%;
	position: relative;
}

#access ul {
	left: 50%;
	position: relative;
}
Shamelessly stolen from here. Let me know how it goes.

Didn't seem to work. Where should I put the code? I stuck it in style.css

maskenfreiheit
Dec 30, 2004
I'm trying to center the navbar in my coraline theme. I googled a bit and found this css:

#access .menu ul {float:left; position:relative; left:50%;}
#access .menu ul li {position:relative; right:50%;}
#access .menu ul ul {position:absolute; left:0;}
#access .menu ul ul li {left:0;}

I put that in style.css, but it didn't help. Any ideas on how to do this?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply