Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Bootstrap 3 nav Can the dropdown link text identifier/caret be made into a link?

Participant ,
Dec 12, 2017 Dec 12, 2017

Copy link to clipboard

Copied

I've added a dropdown link under the "HOME" link, and have failed to enable the text "HOME" to function as a link in addition to the dropdown.

===========Partial Code===============

<nav class="navbar navbar-inverse navbar-fixed-top">

  <div class="container">

    <!-- Brand and toggle get grouped for better mobile display -->

    <div class="navbar-header">

      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#myDefaultNavbar1" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>

      <a class="navbar-brand" href="#">Brand Logo</a></div>

    <!-- Collect the nav links, forms, and other content for toggling -->

    <div class="collapse navbar-collapse" id="myDefaultNavbar1">

      <ul class="nav navbar-nav">

        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true">HOME</a><span class="caret"></span></a>

          <ul class="dropdown-menu">

            <li><a href="../pages/about.html">About</a></li>

          </ul>

========================================

Thanks for your time...

Views

433
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 12, 2017 Dec 12, 2017

Although HOME can be made into a link, it would defeat the purpose on touch screen devices as these do not have a hover effect.

As a side note, you have an extra closing anchor tag in

<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true">HOME</a><span class="caret"></span></a>

Votes

Translate
Community Expert ,
Dec 12, 2017 Dec 12, 2017

Copy link to clipboard

Copied

Although HOME can be made into a link, it would defeat the purpose on touch screen devices as these do not have a hover effect.

As a side note, you have an extra closing anchor tag in

<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true">HOME</a><span class="caret"></span></a>

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 12, 2017 Dec 12, 2017

Copy link to clipboard

Copied

LATEST

Got it. Thanks Ben.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines