SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Controlling widths on Horizontal Navigation

    Putting together some horizontal navigation at http://codepen.io/WebDevCA/pen/ClgBG which will then be moved into the real project when it is done. I know that the styling is not finished right now as far as appearance goes. The issue now is that for the list items that are always visible (the row at the top) I'd like those list items to be no longer than their content (well, with a little padding, of course) but right now they are showing up at the width of the menus nested within them. Is there any way to control this? Thanks in advance for any help.

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Making some headway on this...

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,350
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Are you sorted with this as the top level items seem to be only content width. The sub menus should have no effect on the parent's width because they are absolutely placed. The width of the sub menu though will usually default to the parents width unless you give it a width or force the width by other means.

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Makes sense. Thanks.


Tags for this Thread

Bookmarks

Posting Permissions

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