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
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    new to DHTML and having problems

    see my code below:

    //Menu properties
    oCMenu.pxBetween=1
    oCMenu.fromLeft=304
    oCMenu.fromTop=78
    oCMenu.rows=1
    oCMenu.menuPlacement="center"

    i cannot figure out why my nav will not match the width of my main content area. as you can see i have the placement as center and of course my content area is also centered. see the page in action here:

    http://www.genefeltonrestorations.co...back_page.html

    the page is in very rough draft stage. i am really working just to get the nav looking good before i work on the rest. Thanks!

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    You menu is absolute positioned, not relative (see the CSS), so that it has nothing to do with your "content" area. It is an independent element, once it's position is absolute.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Make your MainContainer div position:relative; your menu will now move with your layout.


  •  

    Posting Permissions

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