www.webdeveloper.com
Results 1 to 2 of 2

Thread: Navigation bar to top of page

  1. #1
    Join Date
    Aug 2007
    Posts
    1

    Navigation bar to top of page

    Hi Everyone,

    How do I make the navigation bar on my site site at the very top of the page with no space??
    I have it in a top frame and I dont seem to be able to make it 'stick' to the top????

    Please help

    18URT

  2. #2
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    All browsers have default margins and padding on elements, including the <body>. These defaults can be stripped by starting the css file with
    Code:
    * { margin: 0; padding: 0;}
    . Alternately, if only the body defaults are required to be zeroed, you could use
    Code:
    body { margin: 0; padding: 0;}
    .

    Would also suggest rethinking using frames.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles