Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Problem with menu

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #173476
    kenpati
    Participant

    Hello everyone i have several problems with my menu
    http://just-example.url.ph/
    1. In a tab (Freebies) i have drop-down menu, in this menu i have lower divider when i am adding some text i want to this is separator (http://just-example.url.ph/images/drop-down-separator.png) take maybe 80% of the total space and (the same width to any elements. Regardless of how much I am adding some text (if this possible please help))

    2.and second problem add to the tab (Freebies) this image http://just-example.url.ph/images/arrow.png please :D

    #173478
    Paulie_D
    Member

    Could you please put the demo into a Cdoepen.io example rathe rthan a test page.

    It’s really hard to debug and tweak code using Developer Tools

    However, both of these can easily be accomplished by pseudo-elements.

    #173479
    kenpati
    Participant
    #173480
    Paulie_D
    Member

    This should fix the first issue

    ul.nav ul li {
      float:none;
      list-style:none inside;
      width:100%;
      text-align:center;
      height:30px;
      background-image:url(http://just-example.url.ph/images/drop-down-separator.png);
      background-repeat: no-repeat;
      background-position: center bottom;
      background-size: 80% ;
    }
    

    Codepen Link

    #173481
    Paulie_D
    Member

    …and this should be the other.

    ul.nav li.drop-down {
      background-image: url(http://just-example.url.ph/images/arrow.png);
      background-size:12px 9px  ;
      background-position: right center;
    }
    

    Codepen Link 2

    #173482
    kenpati
    Participant

    OMG thanks you I actually forgot this (background-size)

    #173483
    Paulie_D
    Member

    I actually forgot this (background-size)

    That’s one reason I generally separate out complex CSS ‘shortcut’ properties into their various parts.

    My CSS is a little longer in pre-production but a good minifier will combine them..hopefully.

    #173484
    kenpati
    Participant

    and how about second problem need this arrow.png with separator.png i try ::after but nothing :D

    #173485
    Paulie_D
    Member

    Check out my second fiddle

    http://codepen.io/Paulie-D/pen/HvjCq

    #173486
    kenpati
    Participant

    i need use double background?

    #173487
    kenpati
    Participant

    i need like this http://just-example.url.ph/arrow.png )

    please?)

    #173490
    kenpati
    Participant

    somebody?)

    #173491
    Paulie_D
    Member

    Yes, a double background would work.

    Frankly, I don’t use separator images, there are other options like borders and such.

    #173492
    kenpati
    Participant

    thanks you close topic)

Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘CSS’ is closed to new topics and replies.