Alex Onsman has Published 203 Articles

Bootstrap 4 .border-white class

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:41:54

106 Views

To set white border to an element, use the border-white class.Add white border −   This has white border Above, I have also added a style to set the div element −.mystyle {   width: 200px;   height: 100px;   margin: 10px;   background: blue; }Let us see an eample ... Read More

Form the element as a circle in Bootstrap

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:39:43

328 Views

To form an element as a circle, use the .rounded-circle class in Bootstrap.It is easy to implement it −Let us see an example to create a circle in Bootstrap −ExampleLive Demo       Bootstrap Example                             .test {       width: 300px;       height: 300px;       background-color: orange;     }           Circle     We have a circle below:      

Place the image at the top inside a Bootstrap 4 card

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:38:04

65 Views

Use the card-img-top class in Bootstrap 4, to set the image at the top inside a card in Bootstrap 4 −Add the image inside the card class −Now add the card body that includes title and text −   Swift 4   Learn Swift 4   Begin The following is ... Read More

Add information with Bootstrap 4 card

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:35:57

70 Views

To add information to a card in Bootstrap 4, use the bg-info class.Use the card class with the bg-info class:Add the card body after that using the card-body class −   Demo Text You can try to run the following code to add information −ExampleLive Demo     ... Read More

Set warning action with orange outlined Bootstrap 4 Button

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:34:25

168 Views

Set orange outline for a Bootstrap 4 button, using the btn-outline-warning class and indicate warning action.The following includes the orange outline on a button −   Rejected The class is added just as any other class added to any element in Bootstrap.  For a Bootstrap button, I used the ... Read More

Indicate danger with red outlined Bootstrap 4 Button

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:30:58

85 Views

Use the btn-outline-danger class in Bootsrap 4 to indicate danger with red outlined button.The following is an example to set a button that indicates danger with red outline −   Danger The class is added using the btn and btn-outline-danger class in Bootstrap −class="btn btn-outline-danger”Let us see an example to ... Read More

Remove float from an element in Bootstrap

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:22:04

247 Views

Use the float-none class in Bootstrap to remove float from an element.The default for a text is always left; therefore removing float will place the text on the left −You can try to run the following code to remove float from an element −ExampleLive Demo       ... Read More

Align single rows of items from the start in Bootstrap 4

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:14:52

96 Views

Use the .align-items-start in Bootstrap 4 to align single rows of items from the start.Set the align-items-start class −Add the flex items −   Product 1   Product 2   Product 3  Implementing align-items-start class to align single rows of items −ExampleLive Demo       Bootstrap Example                           Align Flex Items on a single row       Product 1     Product 2     Product 3     Product 4    

Place the image at the bottom inside a Bootstrap 4 card

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:11:51

549 Views

To place the image at the bottom inside a card, use the card-img-bottom class.Firstly, set the card body and then use the tag to add an image. The following code snippet is added inside the card class −   Quantitative Aptitude   For Entrance Exams   Sample Questions ... Read More

Turn an image into a Bootstrap 4 card background

Alex Onsman

Alex Onsman

Updated on 17-Jun-2020 11:04:37

3K+ Views

Use the card-img-overlay class to turn an image into a card background.You need to first set the element and then use the card-img-overlay class as in the following code snippet −         Avro     Tutorial for Apache Avro     Learn   ... Read More

Advertisements