My Blog

    • Sample Page
Illustration of a bird flying.
  • Placing Search Form inside Navbar

    Search form is a very common component of the navbars and you have seen it on various website quite often. You can place various form controls within a navbar using the class .d-flex on the <form> element, as demonstrated in the following example: Example — The output of the above example will look something like this:

    November 7, 2022
  • Adding Logo Images to Navbars

    You can also place your logo image inside the navbar, instead of plain text. However, you need to set the logo height manually to fit it properly inside the navbar, as shown here: Example — The output of the above example will look something like this: Tip: Use the utility classes such as .ms-auto, .me-auto, .justify-content-between, etc. to align the nav…

    November 7, 2022
  • Bootstrap Navbar

    In this tutorial you will learn how to create static and fixed positioned responsive navigation headers using the Bootstrap navbar component. Creating Navbar with Bootstrap You can use the Bootstrap navbar component to create responsive navigation header for your website or application. These responsive navbar will be collapsed on devices having small viewports like mobile…

    November 7, 2022
  • Creating the Pills Nav

    Similarly, you can create pill based navigation by adding the class .nav-pills on the basic nav instead of class .nav-tabs, as shown in the following example: Example — The output of the above example will look something like this: Similarly, like nav tabs you can also add icons to your pills nav to make it more attractive: Example…

    November 7, 2022
  • Creating the Basic Tabs

    Simply, add the class .nav-tabs to the basic nav to generate a tabbed navigation, like this: Example — The output of the above example will look something like this: See the tutorial on Bootstrap tabs to learn how to create dynamic tab to toggle between content. You can also add icons to your tab items to make it more…

    November 7, 2022
  • Alignment of Nav Items

    By default, navs are left-aligned, but you can easily align them to center or right using flexbox utilities. The following example uses the class .justify-content-center to align nav items to center. Example — The output of the above example will look something like this: Similarly, you can align nav items to right using the class .justify-content-end, like this:…

    November 7, 2022
  • Bootstrap Nav: Tabs & Pills

    In this tutorial you will learn how to create navigation using Bootstrap nav component. Bootstrap Nav Components Bootstrap provides an easy and quick way to create basic navigation as well as components like tabs and pills which are very flexible and elegant. All the Bootstrap’s nav components, including tabs and pills, share the same base…

    November 7, 2022
  • How to Use Bootstrap Icons in Your Code

    To use Bootstrap icons in your code you’ll require an <i> tag with an individual icon class .bi-* applied on it. The general syntax for using Bootstrap icons is: <i class=”bi-class-name“></i> Where class-name is the name of the particular icon class, e.g. search, person, calendar, star, globe, facebook, twitter, and so on. See the list of all Bootstrap icons classes. For example, to place search icon inside a button…

    November 7, 2022
  • Bootstrap Icons

    In this tutorial you will learn how to include and use Bootstrap icons on a web page. Using Icons in Bootstrap 5 Bootstrap now includes over 1,300 high quality icons, which are available in SVGs, SVG sprite, or web fonts format. You can use them with or without Bootstrap in any project. The advantage of using…

    November 7, 2022
  • Alignment of Media Objects

    You can also change the horizontal alignment of content and media by simply tweaking the HTML code itself, as demonstrated in the following example: Example — The output of the above example will look something like this: Besides that you can also align the images or other media at the middle or bottom of the…

    November 7, 2022
←Previous Page
1 … 20 21 22 23 24 … 113
Next Page→

My Blog

Proudly powered by WordPress