Avoid wrapping flex-items in Bootstrap on different screens

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
 
Ques 2
 
Ques 3
 
Ques 4
 
Ques 5
 
Ques 6
 
Ques 7
 
Ques 8
 
Ques 9
 
Ques 10
 
Ques 11
 
Ques 12
 
Ques 13
 
Ques 14

Flex items won't wrap (large screen size)

 
Ques 1
 
Ques 2
 
Ques 3
 
Ques 4
 
Ques 5
 
Ques 6
 
Ques 7
 
Ques 8
 
Ques 9
 
Ques 10
 
Ques 11
 
Ques 12
 
Ques 13
 
Ques 14

The following is the complete example to implement flex-*-nowrap class in Bootstrap 4 ?

Example


  
    Bootstrap Example
    
    
    
    
    
  

  
   

Flex items will wrap

   
     
Ques 1
     
Ques 2
     
Ques 3
     
Ques 4
     
Ques 5
     
Ques 6
     
Ques 7
     
Ques 8
     
Ques 9
     
Ques 10
     
Ques 11
     
Ques 12
     
Ques 13
     
Ques 14
   

   

Flex items won't wrap (small screen size)

   
     
Ques 1
     
Ques 2
     
Ques 3
     
Ques 4
     
Ques 5
     
Ques 6
     
Ques 7
     
Ques 8
     
Ques 9
     
Ques 10
     
Ques 11
     
Ques 12
     
Ques 13
     
Ques 14
   

   

Flex items won't wrap (large screen size)

   
     
Ques 1
     
Ques 2
     
Ques 3
     
Ques 4
     
Ques 5
     
Ques 6
     
Ques 7
     
Ques 8
     
Ques 9
     
Ques 10
     
Ques 11
     
Ques 12
     
Ques 13
     
Ques 14
   
 
Updated on: 2026-03-11T22:50:42+05:30

217 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements