Nitya Raut

Nitya Raut

158 Articles Published

Articles by Nitya Raut

Page 2 of 16

Create a blue button (primary) with Bootstrap

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 332 Views

Use the .btn-primary class in Bootstrap to create a primary button in Bootstrap that is blue in color −Example           Bootstrap Example                                 Click below if you want to know the result:       Result    

Read More

Add a blue background color to simulate a pressed button in Bootstrap

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 229 Views

To add a blue background color to simulate a pressed button, use the primary button in Bootstrap as in the following code −Example           Bootstrap Example                                          Score          Result (2018)          Result (2017)          

Read More

Create a caret arrow icon that represents dropdown button with Bootstrap

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 2K+ Views

Use the .caret class in Bootstrap to create a caret arrow icon representing dropdown button.You can try to run the following code to create a carot arrow icon −Example           Bootstrap Example                                          Brands          The car brands:                       Car                            BMW                Toyota                Audi                Mahindra                Volvo                                

Read More

Usage of CSS align-items property flex-start value

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 207 Views

Use the align-items property with value flex-start to align flex items on the top.ExampleYou can try to run the following code to implement the flex-start value −                    .mycontainer {             display: flex;             height: 300px;             background-color: red;             align-items: flex-start;          }          .mycontainer > div {             background-color: orange;             text-align: center;             line-height: 60px;             font-size: 30px;             width: 100px;             margin: 5px;          }                     Quiz                Q1          Q2          Q3          Q4          

Read More

Create a disabled look of a button with CSS

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 438 Views

To create a disabled button look, use the CSS opacity property.ExampleYou can try to run the following code to create a disabled look of a button −                    .btn1 {             color: black;             text-align: center;             font-size: 15px;          }          .btn2 {             color: black;             text-align: center;             font-size: 15px;             opacity: 0.5;          }                     Result       Click below for result:       Enabled       Disabled    

Read More

Building a Responsive Grid-View with CSS

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 450 Views

You can try to run the following code to build a responsive grid-view:Example                          * {             box-sizing: border-box;          }          .header {             border: 1px solid black;             padding: 10px;          }          .leftmenu {             width: 30%;             float: left;             ...

Read More

Rotate Out Down Left Animation Effect with CSS

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 78 Views

To create rotate out down left animation effect with CSS, you can try to run the following code −Example                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes rotateOutDownLeft {             0% {                -webkit-transform-origin: left bottom;                -webkit-transform: rotate(0);                opacity: 1;             }             100% {                -webkit-transform-origin: left bottom;                -webkit-transform: rotate(90deg);                opacity: 0;             }          }          @keyframes rotateOutDownLeft {             0% {                transform-origin: left bottom;                transform: rotate(0);                opacity: 1;             }             100% {                transform-origin: left bottom;                transform: rotate(90deg);                opacity: 0;             }          }          .rotateOutDownLeft {             -webkit-animation-name: rotateOutDownLeft;             animation-name: rotateOutDownLeft;          }                           Reload page                function myFunction() {             location.reload();          }          

Read More

How to select elements with a specified attribute and value with CSS

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 275 Views

Use the [attribute = ”value”] selector to select elements with a specified attribute and value.You can try to run the following code to implement the CSS [attribute = "value"] Selector. Here, we have considered the attribute as rel,Example:                 a[rel = nofollow] {          border: 3px solid blue;       }                     Uber's Business Model       Share Market    

Read More

How to position tooltips correctly with CSS

Nitya Raut
Nitya Raut
Updated on 11-Mar-2026 6K+ Views

To position tooltips correctly, use the right, left, top and bottom properties.Let us see how to position tooltips on the right:Example           .mytooltip .mytext {          visibility: hidden;          width: 140px;          background-color: blue;          color: #fff;          z-index: 1;          top: -6px;          left: 100%;          text-align: center;          border-radius: 6px;          padding: 5px 0;          position: absolute;       }       .mytooltip {          position: relative;          display: inline-block;       }       .mytooltip:hover .mytext {           visibility: visible;       }               Keep mouse cursor over me           My Tooltip text          

Read More

C++ Program to Implement Graham Scan Algorithm to Find the Convex Hull

Nitya Raut
Nitya Raut
Updated on 29-Apr-2025 4K+ Views

A convex hull is the smallest convex polygon with maximum area and minimum perimeter that encloses all the given points in a 2D plane. In this article, we will learn how to write C++ program to implement Graham Scan Algorithm to find convex hull. The objective of this problem is to take a set of x and y coordinates of a 2d plane as input, and display coordinate point from the set which are part of convex hull. // Input Set of points: {0, 0}, {1, 1}, {2, 2}, {2, 0}, {1, 2}, {0, 2} // Output Boundary ...

Read More
Showing 11–20 of 158 articles
« Prev 1 2 3 4 5 16 Next »
Advertisements