• Skip to main content
  • Skip to primary sidebar

WordPress, Genesis Framework and Storefront customization tutorials

  • Archive
    • Free
    • Premium
  • Blog
  • About
  • Contact
  • Newsletter
  • Membership
  • Login
Home ยป HTML

HTML

Responsive Header Top Bar Contact Info with Icons

HTML

<ul class="top-header">
    <li class="address">
       <a href=""><i class="fas fa-map-marker"></i>
            <span></span>
        </a> 
    </li>
    <li class="tel">
        <span>
           <a href="tel:"><i class="fas fa-phone"></i>
                
            </a> 
        </span>
    </li>
    <li class="mail">
        <a href="mailto:"><i class="fas fa-envelope"></i>
            <span></span>
        </a>
    </li>
    <li>
        <a target="_blank" href="">
            <i class="fab fa-facebook-f"></i> <span>Facebook</span>
        </a>
    </li>
</ul>

CSS

/* Mobile First */
.top-header li a:hover, 
.top-header li a i:hover{
    color: #EA6F22
}
.top-header{
    display: flex;
    background: #151211;
    color: white;
}

.top-header {
	margin-bottom: 0;
	padding: 10px;
	font-size: 1.6rem;
	color: rgba(255,255,255,.8);
	justify-content: space-around;
}
.top-header span{
    display: none;
}
.top-header .fab,
.top-header .fas {
	margin: 0 10px;
	font-size: 3rem;
}


/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {  
    .top-header .fas,
    .top-header .fab{
	font-size: 1.5rem;
}

Filed Under: Free Tagged With: CSS, HTML

Primary Sidebar

Gabor Flamich

Hi! I'm Gabor.
I write tutorials on WordPress and WooCommerce.

MacBook

12 Essential Snippets for Genesis Developers

Subscribe to my Newsletter to view my basic collection of Genesis snippets that I use for my projects!

Sign Up for Free
  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube
UpdraftPlus Premium

Tags

ACF Ajax Analytics API Bootstrap Breadcrumb category CPT CSS fetch Genesis Google Maps Gutenberg HTML Isotope JavaScript jQuery loop Map Menu Parallax PHP SASS SEO SQL Storefront SVG tab tag manager tags Taxonomy Tool upsell Webpack Wholesale WooCommerce WordPress WPML

Disclosure: Some of the links in this site are affiliate links. I will be paid a commission if you use this link to make a purchase.

  • Privacy Policy / Terms of Service
© 2023 WP Flames - All Right Reserved