1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML Problems with borders

Discussion in 'Web Development' started by myname, Jan 25, 2011.

  1. myname

    myname New Member

    Hi. I wonder if anyone can help me. My knowledge is 8 years out of date. Rushly I agreed to help a friend with his site ( which is not great but he likes it), and after spending days on refreshing and learning I've done the site but the machine crashed during save. Now I can't remember how I've overcome my problems which are: border around the navigation bar (it collapsed and will not cover the elements), the main picture floats down if browser minimised, and text in lower text box will not stay in. I am using Nvu and notepad for .css. Any pointers will be greatly appreciated. I've posted this question in other parts of this forum - sorry for repeat.:eek:
     

    Attached Files:

  2. jd132

    jd132 VIP Member

    hey buddy the problem is u placed ur <ul> outside the div so put them inside the div like this

    and then to the <div id="sidebar"> give height as 100% it will be done :) then all u need to do is to remove the unnecessary margins from the navigation <ul>


    and in higher resolution the site is looking mess so give the main div a fixed width and align it to the center of page.


    cheers!!!
     
  3. myname

    myname New Member

    Thanks, nav is sorted. However, main still floats under the navigation on minimised browser. Can i allow it to lose the margin between navigation up to 5px, say, but then stop? thanks again
     
  4. almedajohnson

    almedajohnson New Member

    hey nav thanks for the code. It given me the idea for my current project :D
     
  5. Nicholas

    Nicholas New Member

    thx jd132 i like ur post it will really helpful for me not for now but in the future.....