Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts

    trying to add a div to the very top of the page

    i want some extra navigation so i want to add a div to the top of my site.

    so, i created a class (i know the width is not the entire page length but its irrelevant here)

    .topmost{
    background-color: #B90101;
    color: #FFFFFF;
    width:340px;
    height:107px;
    }

    I created an instance of the class just under header (it may not be live now). it is also above headerleft or headerright or navtop divs:

    <div class="topmost">
    sdafsadf
    </div>

    the problem is that it shifts some things vertically downward but not everything. i want it to shift everything down together in unison obviously.

    how do i do this to yield the results i am looking for?

    page is at
    Last edited by cyborg360; 11-01-2011 at 01:51 AM.

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    wrap HeaderLeft, HeaderRight, and clear in a div

    essentially if you placed this nav above "header" it would work fine
    Last edited by Sammy12; 11-01-2011 at 01:43 AM.

  • Users who have thanked Sammy12 for this post:

    cyborg360 (11-01-2011)

  • #3
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Sammy12 View Post
    wrap HeaderLeft, HeaderRight, and clear in a div

    essentially if you placed this nav above "header" it would work fine
    much appreciated.


  •  

    Posting Permissions

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