SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot 8Observer8's Avatar
    Join Date
    Jul 2013
    Location
    Russia
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    to set the Menu in width by content

    Hi,

    I got the menu from here: http://knowledgebase.bridge-delivery...-and-vertical/

    I want to move it to the center:

    Code:
    .ui-menu { 
        overflow: hidden;
        margin: 0px auto;
    }
    and to set the Menu in width by content: http://jsfiddle.net/8Observer8/7Bvap/227/

    Sorry for my English.

    Thank you!

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,378
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Looks like you can do this with CSS if I understand correctly what you want.

    IE8+ only though.
    Code:
    .ui-menu { 
        overflow: hidden;
        margin: 0px auto;
        display:table;
    }

  3. #3
    SitePoint Zealot 8Observer8's Avatar
    Join Date
    Jul 2013
    Location
    Russia
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much


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
  •