0

I have this code to show a dropdown menu at the right top side of a web.

<div class="nav-collapse collapse">
                        <ul class="nav pull-right">
                            <li class="dropdown">
                                <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> 
                                <?php echo $row['userEmail']; ?> <i class="caret"></i>
                                </a>
                                <ul class="dropdown-menu">
                                 <li>
                                        <a href="miperfil.php">Mi perfil</a>
                                    </li>
                                    <li>
                                        <a  href="logout.php">Logout</a>
                                    </li>

                                </ul>
                            </li>
                        </ul>

The two options work fine on a desktop PC but they don't respond on a mobile device. What should I change to have them working on both mobile and desktop browsers?

mvasco
  • 4,965
  • 7
  • 59
  • 120
  • What exactly is the problem? It's hard based on what you have asked to visualize what the problem is. – Charlie Fish Aug 02 '16 at 17:59
  • @CharlieFish, the problem is that using a mobile device browser the links are not working, and using a desktop PC browser the two links are working – mvasco Aug 02 '16 at 18:13
  • Like they aren't clickable or they aren't displaying? – Charlie Fish Aug 02 '16 at 18:24
  • 2
    @CharlieFish, I have found the solution here http://stackoverflow.com/questions/17178606/bootstrap-v2-dropdown-navigation-not-working-on-mobile-browsers . Thank you – mvasco Aug 02 '16 at 18:25
  • No need to post the same comment more then once. – Charlie Fish Aug 02 '16 at 18:30
  • Thanks for posting solution that resloved your problem. – sixtytrees Aug 02 '16 at 20:12
  • Possible duplicate of [Bootstrap v2 Dropdown Navigation not working on Mobile Browsers](https://stackoverflow.com/questions/17178606/bootstrap-v2-dropdown-navigation-not-working-on-mobile-browsers) – Charlie Fish Dec 30 '17 at 19:41

0 Answers0