Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2013
    Location
    sydney
    Posts
    223

    How to fixed top div using css?

    Hello Guys,
    I did try to fix my top div but when i set position:fixed for top div then the div goes in left. please help me to fixed it.
    i am using like that;
    <div id="top"></div>
    <div id="content"></div>

    CSS code
    #top
    {
    position:fixed;
    z-index:100;
    }
    Please help me to solve out this proble.

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Location
    Sydney
    Posts
    108
    Where is main container? first keep all content and div in a main container div and keep this container margin 0 auto; and after your can be fixed any div otherwise you may be face overlapping problem with your design.

Posting Permissions

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

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.