Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling menu closer to the top? 1

Status
Not open for further replies.

Blueie

Technical User
May 12, 2012
72
0
0
GB
Hello

I am having some trouble pulling my menu and text closer to the top of the screen by about 20px:

Link

I have tried playing about with the menu, but to no avail.

Thanks!
 
Hi

What about changing .nav's top [tt]margin[/tt] to 0 ?
Code:
.nav {
 font-family: "Unica One";
  font-size: 1.5em;
  background: #f2f2f2;
  text-align: center;
  overflow: hidden;
  [highlight]margin: [red]0[/red] auto 2em;[/highlight]
  width: 480px;
  position: relative; }

Feherke.
feherke.ga
 
crow.html


That's with:

CSS:
margin: 0 auto 2em;
/*margin: 2em auto;*/

Wonderful stuff!

Thank you and Merry Christmas!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top