Front End Technology Articles - Page 640 of 860

Arrow to the bottom of the tooltip with CSS

Nancy Den
Updated on 01-Jul-2020 11:04:34

859 Views

Use the top CSS property to add arrow to the bottom of the tooltip.ExampleYou can try to run the following code to add a tooltip with arrow to the bottom:Live Demo           .mytooltip .mytext {          visibility: hidden;          width: 140px;          background-color: blue;          color: #fff;          z-index: 1;          bottom: 100%;          left: 60%;          margin-left: -90px;          text-align: center;          border-radius: 6px;          padding: 5px 0;          position: absolute;       }       .mytooltip {          position: relative;          display: inline-block;          margin-top: 50px;       }       .mytooltip .mytext:after {          content: "";          position: absolute;          top: 100%;          left: 50%;          margin-left: -10px;          border-width: 7px;          border-style: solid;          border-color: blue transparent transparent transparent;       }       .mytooltip:hover .mytext {          visibility: visible;       }               Keep mouse cursor over me           My Tooltip text          

How to add link dividers in a Navigation Bar with CSS

George John
Updated on 23-Jun-2020 14:51:27

2K+ Views

To add link dividers in a Navigation Bar, use the border-right property for the element.ExampleLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;             border-right: 1px solid white;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }          li:last-child {             border-right: none;          }                              Home          News          Contact          About          

Float List Items to the right with CSS

Daniol Thomas
Updated on 23-Jun-2020 14:50:35

3K+ Views

To float the list items to the right, use float: right property in CSS. You can try to run the following code to implement it,ExampleLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

Build Horizontal Navigation Bar with Floating List Items in CSS

Ankith Reddy
Updated on 01-Jul-2020 11:05:06

977 Views

To create a horizontal navigation bar, use the floating list item.ExampleYou can try to run the following code to create a horizontal navigation barLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

What are Floating List Items in CSS

seetha
Updated on 01-Jul-2020 11:04:06

615 Views

To create a horizontal navigation bar, use the floating list item.ExampleYou can try to run the following code to create horizontal navigation bar −Live Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

Create a Horizontal Navigation Bar with CSS

George John
Updated on 01-Jul-2020 11:02:38

4K+ Views

To create a horizontal navigation bar, set the elements as inline.ExampleYou can try to run the following code to create horizontal navigation barLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          .active {             background-color: #4CAF50;             color: white;          }          li {             border-bottom: 1px solid #555;             display: inline;          }                              Home          Company          Product          Services          Contact          

What are Inline List Items in CSS

Sreemaha
Updated on 01-Jul-2020 11:01:07

3K+ Views

Use Inline List Items to build a horizontal navigation bar. Set the <li> elements as inline.ExampleYou can try to run the following code to create horizontal navigation bar:Live Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          .active {             background-color: #4CAF50;             color: white;          }          li {             border-bottom: 1px solid #555;             display: inline;          }                              Home          Company          Product          Services          Contact          

Set a border around navbar with CSS

Chandu yadav
Updated on 12-Sep-2024 15:58:40

9K+ Views

To set a border around navbar with CSS, is an easy task and can be easily achieved using CSS properties. In this article, we will learn and understand three different approaches for setting a border around navbar with CSS. We are having a navigation bar with four links in our HTML document, our task is to set a border around navbar with CSS. Approaches to Set a Border Around Navbar Here is a list of approaches to set a border around navbar with CSS which we will be discussing in this article with stepwise explaination and complete example codes. ... Read More

Set background image as fixed with CSS

Prabhas
Updated on 01-Jul-2020 10:53:46

785 Views

Use the background-attachment property to display the background image as fixed.ExampleYou can try to run the following code to implement the background-attachment property −Live Demo                    body {             background-image: url("https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg");             background-repeat: no-repeat;             background-attachment: fixed;             background-position: right top;          }                     Background Image    

Set all the top border properties in one declaration using CSS

varun
Updated on 01-Jul-2020 10:53:04

292 Views

Use the border-top property in CSS to set all the top border properties in a single declaration.ExampleYou can try to run the following code to implement the border-top property −Live Demo                    p {             border-style: solid;             border-top: thick dashed #FFFF00;          }                     This is demo text    

Advertisements