Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Bootstrap 3 meny dropdown image bottom

Posted on 2013-12-28
5
Medium Priority
?
1,346 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 1500 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…
Suggested Courses

824 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