Results 1 to 2 of 2

Thread: Question about float drop + other issues

  1. #1
    Join Date
    Jan 2011
    Posts
    2

    Question about float drop + other issues

    What do I have to keep in mind to make the elements in my site not drop? Check this site out:

    tutking.99k.org

    If you resize the browser or go to a lower resolution, notice how everything drops. The nav bar drops, the floats drop. What do I need to do to fix that so that it does like this site (webdevforums) does, for example.

    The elements are not affected by resizing the browsers...why is this?

  2. #2
    Join Date
    Jun 2007
    Posts
    295
    Mainly the reasons are that you have defined the width of the container to be 100% instead of a fixed width. For your other elements, you are defining a percentage margin.

    The Nav bar - you don't have a defined width, so it adopts it's parent width (container) which is 100%. So when you resize the browser, the nav bar resizes and if the content doesn't fit, it drops to the next line.

    the columns drop because the their parent container's width is 100%, so when you resize the window, the size of the parent container changes, and if it's less than 600 pixels, the secondary column drops to the next line.

    Change the container width to be a fixed width and it will fix the problems.

Similar Threads

  1. Drop-down menu issues in Internet Explorer
    By bdeen in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 12 Oct 2009, 08:53 AM
  2. Drop Down Menu Issues...
    By Caderial in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 03 Oct 2009, 02:37 AM

Posting Permissions

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