Solved

Bootstrap 3 meny dropdown image bottom

Posted on 2013-12-28
5
1,306 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 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