Solved

Bootstrap 3 meny dropdown image bottom

Posted on 2013-12-28
5
1,317 Views
Last Modified: 2013-12-30
Hallo! Can I put this in the bottom of the menu, or if it is possible to do the same with css without image.

This image bottom of the dropdown
image bottom off the dropdown
Look like this
shod look like this
Demo
http://www.smavitt.se/utv/

<!-- .meny -->
    <div class="navbar navbar-default navbar-static-top" style="margin-top: 20px;" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
       
        </div>
        <div class="collapse navbar-collapse"  style="margin-left: -15px;">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
               <li><a href="#contact"></a></li>
         
          </ul>


             <ul class="nav navbar-nav pull-right ">
           
            <li class="dropdown">
             <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="images/cart_small.png" alt="varukorg" /> Varukorg: <b>2 varor</b><b class="caret"></b></a>
               
                <ul class="dropdown-menu varukorg-meny-ul">

                 <li class="varukorg-meny-li"><img src="http://www.euronicsoskarshamn.se/image/cache/data/Braun%20Series%203%20340s-500x500.jpg" class="varukorg-img" src="text" /> <div class="varukorg-text"><a href="" class="varukorg">BAJAJ - RCX3 - Rice
Cooker</a>
                 <div class="varukorg-kr">100 kr</div>
                 
                 </div>
                 
                    <div class="hr"></div>
                 
                 </li>


                   <li class="varukorg-meny-li"><img src="http://www.euronicsoskarshamn.se/image/cache/data/Braun%20Series%203%20340s-500x500.jpg" class="varukorg-img" alt="text" /> <div class="varukorg-text"><a href="" class="varukorg">BAJAJ - RCX3 - Rice
Cooker</a>
                 <div class="varukorg-kr">100 kr</div>
                 
                 </div>
                 
                    <div class="hr"></div>
                 
                 </li>
                    <li>
                    <img src="images/Till-kassan.png" class="varukorg-till-kassan" alt="Till-kassan" />

                        </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
          <!-- .meny end -->
0
Comment
Question by:MickeC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39744060
.dropdown-menu:after {
    content: url("/path-to-image/korg-dropdown-bottom.png");
}
0
 

Author Comment

by:MickeC
ID: 39744072
Look its dozent stck to the bootom...

http://www.smavitt.se/utv/
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39744088
Change it to
.dropdown-menu li:last-child:after {
    content: url("images/korg_dropdown_bottom.png");
}

Open in new window


and add
.dropdown-menu li:last-child {
    height: 45px;
}

Open in new window

0
 

Author Comment

by:MickeC
ID: 39744102
Thankz....
0
 
LVL 58

Expert Comment

by:Gary
ID: 39744104
Why only a grade B?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question