CSS/HTML Bootstrap 4 footer - on hover

footer bootstrap 4
responsive footer in bootstrap 4
bootstrap footer bottom
bootstrap 4 footer always at bottom
sticky footer bootstrap 4
html footer template
simple footer html
bootstrap footer codepen

I am trying to get a color change on hover in a Bootstrap footer. I can't seem to figure out the code to access the link properly.

Here is the pertinent part of my HTML:

<footer>
        <div class="container1">
            <div class="row">
                <div class="col-md-3">
                    <!-- <h4>ABOUT US</h4> -->
                    <a class="nav-link" href="/public/about/"><h5>ABOUT US</h5></a>
                </div>
                <div class="col-md-6">
                </div>
                <div class="col-md-3">
                    <h5><strong>CONTACT INFO:</strong></h5><br>
                    <p><strong>Email:</strong> michael@hcmn.net</p>
                    <p><strong>Phone:</strong> (713)555-5555</p>

                </div>
            </div>
        </div>
        <div class="container2">
            <p><strong>© 2019 Ad Astra Web Services</strong></p>
        </div>
    </footer>

It is the "ABOUT US" that I would like to change color on mouse hover.

Here is the current CSS code:

.container1 .nav-link a:hover {
color: #808080;
}

I believe it's just a matter of using the correct code to access the link.

Please help if you can.


The CSS selector is wrong. It should be:

.container1 .nav-link:hover {
   color: #808080;
}

https://www.codeply.com/go/htf3EhitRj

Using .nav-link a means select the a that is a child of .nav-item which is not what you want.

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java  Complete list of all Bootstrap 4 CSS classes with description and examples: Adds a white text color to the active link in a navbar. Adds a blue background color to the active list item in a list group. Adds a dark-blue background color to simulate a "pressed" button. Adds a blue background color to the active dropdown item in a dropdown.


To change try this make little change to the css

.container1 a.nav-link:hover {
color: #808080;
 }

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java  A Bootstrap hover effect appears when the user positions the computer cursor over an element without activating it. Hover effects make a website more interactive. However, we don't recommend that you mix hover effects with functional elements (like a drop-down on hover or hidden buttons visible only after hovering) because such approach isn't


You can try

.col-md-3 a:hover {
  color: #808080;
 }

The code in Jsfiddle

Bootstrap footer is an additional navigation for the website. It can hold links, buttons, HTML. <!-- Footer --> <footer class="page-footer font-small blue pt-4"> <! Bootstrap 4 Popover. The Popover component is similar to tooltips; it is a pop-up box that appears when the user clicks on an element. The difference is that the popover can contain much more content.


Convey meaning through color with a handful of color utility classes. Includes support for styling links with hover states, too. HTML HTML Tag Reference HTML Browser Support HTML Event Reference HTML Color Reference HTML Attribute Reference HTML Canvas Reference HTML SVG Reference HTML Character Sets Google Maps Reference CSS CSS Reference CSS Browser Support CSS Selector Reference Bootstrap 3 Reference Bootstrap 4 Reference W3.CSS Reference Icon Reference Sass Reference


There's a newer version of Bootstrap 4! It includes options for headers and footers, a wide variety of content, contextual background colors, and Below is an example of a basic card with mixed content and a fixed width. Cards You can change this as needed with custom CSS, grid classes, grid Sass mixins, or utilities. Footer Bootstrap footer. A footer is an additional navigation method for websites. It can hold links, buttons, company info, copyrights, forms and many other elements. You can set the color of the footer by adding one of the classes from our color palette. Just like any other componentd of MDBootstrap, Footers are responsive by default


There's a newer version of Bootstrap 4! Example: Enable popovers everywhere Example: Using the container option For disabled popover triggers, you may also prefer data-trigger="hover" so that the popover appears as immediate visual animation, boolean, true, Apply a CSS fade transition to the popover. The :hover selector is used to select elements when you mouse over them. Tip: The :hover selector can be used on all elements, not only on links. Tip: Use the :link selector to style links to unvisited pages, the :visited selector to style links to visited pages, and the :active selector to style the active link.