Ricky Barnes has Published 119 Articles

Bootstrap 4 .flex-*-column class

Ricky Barnes

Ricky Barnes

Updated on 18-Jun-2020 14:02:51

431 Views

Use the .flex-*- column class in Bootstrap to show flex items vertically on different screen sizes:Set it vertically on small, medium, large, etc screen size. Let us see it on small and medium screen size:Small Screen SizeFlex on different screen size (Small)   One   Two   Three Medium ... Read More

border-top-0 class in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 18-Jun-2020 14:00:57

300 Views

Use the border-top-0 class in Bootstrap 4 to remove the top border.Set the border-top-0 class −   Rectangle is missing the TOP border. Let us see an example to implement the border-top-0 class −ExampleLive Demo       Bootstrap Example             ... Read More

Set orange border on an element in Bootstrap to indicate danger

Ricky Barnes

Ricky Barnes

Updated on 18-Jun-2020 13:57:46

199 Views

To set orange border to an element, use the border-warning class −   Danger (Orange border) Set the style for the element − .mystyle {   width: 200px;   height: 100px;   margin: 10px; } Let us see an example to implement the border-warning class in Bootstrap −ExampleLive Demo ... Read More

Set a white border to an element in Bootstrap

Ricky Barnes

Ricky Barnes

Updated on 18-Jun-2020 13:56:01

153 Views

Use the border-white class in Bootstrap 4 to set white border to an element.   This has white border The test class above styles the element as shown below − .test {   width: 120px;   height: 100px;   margin: 10px;   background: blue; } Let us see an example ... Read More

Bootstrap 4 .border-0 class

Ricky Barnes

Ricky Barnes

Updated on 18-Jun-2020 13:53:39

315 Views

Use the border-0 class in Bootstrap to eliminate all borders from an element as shown below −   No border We have also set CSS style above −.mystyle {   width: 120px;   height: 100px;   margin: 10px;   background: gray; }You can try to run the following code to ... Read More

Bootstrap 4 Button .btn-outline-dark class

Ricky Barnes

Ricky Barnes

Updated on 18-Jun-2020 13:52:00

321 Views

Use the .btn-outline-dark class in Bootstrap to set dark outline on a button.The following is an example of a button with dark outline −Set the above outline to the button, using the btn-outline-dark class as shown below −   Submit You can try to run the following code to implement ... Read More

Avoid wrapping flex-items in Bootstrap on different screens

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 15:17:47

144 Views

You can wrap the flex items on difference screen sizes, using the flex-*-nowrap class. As shown below, wrapping is avoided here −The above avoids wrapping of flex item on small and large screen size using the following code snippet −Flex items won't wrap (small screen size)   Ques 1 ... Read More

Stretch single rows of items in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 14:36:50

911 Views

Use the .align-items-stretch class to stretch single rows of items in Bootstrap 4.To stretch single rows of items −

Bootstrap 4 .flex-grow-0|1 class

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 14:27:59

296 Views

Use the .flex-grow-0|1 class in Bootstrap to allow a singly lex item to take up rest of the space in the flex.For example, the following takes rest of the space in the right −The above is set by adding flex-grow class for the last flex-item −   P   Q ... Read More

Flex items into equal widths on different screens with Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 14:22:02

360 Views

To set flex items to equal width on different screens, use the the flex-*-fill class.For small width screen, use flex-sm-fill −   A For large width screen, use flex-lg-fill −   A The following is an example to give euqla width to flex items on different screens −ExampleLive Demo ... Read More

Advertisements