[Resolved] Adaptting primary subnavigation block width to subitems width

Home Forums Support [Resolved] Adaptting primary subnavigation block width to subitems width

Home Forums Support Adaptting primary subnavigation block width to subitems width

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #356993
    Mildmac SA (ESA78960895)

    Hi,
    i added this CSS to increase primary subnavigation block width, but in a fixed way (to, let´s say, 340px)

    .main-navigation ul ul {
    width: 340px;
    padding-top: 0px;
    }

    But the subitems width is different in each main menu item. How can I adapt the block width to the maximum text subitem width?

    #357083
    Leo
    Staff
    Customer Support
    #357356
    Mildmac SA (ESA78960895)

    Thanks Leo, but doesn´t work, because with 100% it inherits the parent item width, but from main menu. I want to adapt the width of the dropdown block to the width of the longest subitem in that block. I send you a capture to show:
    http://sibcont.com/wp-content/uploads/2017/07/capture.jpg
    I don´t know if it is possible…
    Thanks
    Rafael

    #357604
    Tom
    Lead Developer
    Lead Developer
    #357646
    Mildmac SA (ESA78960895)

    Great!!!! That´s it!!! Thanks a lot Tom

    #357653
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.