Full Size For Col-md-2 - HTML & CSS - SitePoint Forums Trang chủ » Html Css Col-md-2 » Full Size For Col-md-2 - HTML & CSS - SitePoint Forums Có thể bạn quan tâm Html Css Col-md-4 Html Css Column Width Html Css Col-xs Html Css Col-xs-12 Html Css Div 2 Column Layout Full size for col-md-2 HTML & CSS bootstrap shabzadeh97 February 13, 2019, 7:39pm 1 hi <div class="row"> <div class="col-md-10"></div> <div class="col-md-2"></div> </div> I have the following code . and I want to get the whole page space when the page gets smaller and the col-md-2 column goes down the page. donboe February 13, 2019, 9:24pm 2 shabzadeh97: I want to get the whole page space when the page gets smaller and the col-md-2 column goes down the page. Hi @shabzadeh97. What is happening when you try? What you want is a default behaviour in Bootstrap 1 Like ronpat February 13, 2019, 10:40pm 3 shabzadeh97: I want to get the whole page space when the page gets smaller and the col-md-2 column goes down the page. Are you saying that you always want both columns to be the same height on the page? or are you saying that you always want col-md-10 to be the same height as col-md-2 ? or are you saying something else altogether? It would be best if you can post a “working page” (starts with doctype, contains URL to BS CDN and URL to any other resources needed, and ends with /html) that demonstrates the problem. 1 Like PaulOB February 14, 2019, 12:49pm 4 shabzadeh97: I have the following code . and I want to get the whole page space when the page gets smaller and the col-md-2 column goes down the page. That is exactly what will happen with your code at 768px smaller width. As Donboe said that is the default behaviour for those classes. 2 Likes shabzadeh97 February 15, 2019, 2:30pm 5 I want the column to be only two units of row when the page is in desktop mode, and in the mobile page , this column will take the entire row. PaulOB February 15, 2019, 3:22pm 6 Yes that’s what you have got already Can you clarify your problem with full code and a screenshot of where it isn’t working as it seems we may not 'understand the question 1 Like shabzadeh97 February 15, 2019, 4:01pm 7 shabzadeh97: <div class=“row”> <div class=“col-md-10”></div> <div class=“col-md-2”></div> </div> this is my page in desktop page image1326×504 252 KB and in mobile page image662×546 117 KB I want this column to take all the width of the page PaulOB February 15, 2019, 5:33pm 8 shabzadeh97: <div class=“row”> <div class=“col-md-10”></div> <div class=“col-md-2”></div> </div> Your screenshot shows that col-md-2 is now 100% wide as expected. Just give it a background colour and you will see it stretches full width. Your image doesn’t stretch full width but as we don’t have any code for the image and its container (if any) then we can’t tell what the problem or solution is It could be as simple as setting the image to width:100% and height:auto for that column. e.g. .images {box-shadow:0 0 10px 10px rgba(0,0,0,0.2);} .images img {width:100%;height:auto;} <div class="container-fluid"> <div class="row"> <div class="col-md-10">testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing </div> <div class="col-md-2 images"> <figure><img src="images/test.jpg" width="500" height="285" alt="test"> <figcaption>Image 1</figcaption> </figure> <figure><img src="images/test.jpg" width="500" height="285" alt="test"> <figcaption>Image 1</figcaption> </figure> <figure><img src="images/test.jpg" width="500" height="285" alt="test"> <figcaption>Image 1</figcaption> </figure> <figure><img src="images/test.jpg" width="500" height="285" alt="test"> <figcaption>Image 1</figcaption> </figure> </div> </div> </div> Or at the 767px media query breakpoint if you have other things going on but without a working demo we are just guessing. Here’s a codepen of the adaptive bootstrap (.container) method and an example of how you can best present your problem to us to make it easy for us to give you the right answer 2 Likes system Closed May 18, 2019, 12:33am 9 This topic was automatically closed 91 days after the last reply. New replies are no longer allowed. Related topics Topic Replies Views Activity Bootstrap3: make one column match another's height HTML & CSS 4 1016 November 29, 2014 Bootstrap 4 beta grid 6 columns > 2 columns on resize HTML & CSS bootstrap 21 15102 February 1, 2018 Bootstrap from 2 columns to 1 from tablet breakpoint and down HTML & CSS 12 5060 March 11, 2019 Column push another one HTML & CSS html5 , css3 , bootstrap 9 3133 December 27, 2017 Responsive site using Bootstrap 4 HTML & CSS bootstrap 2 1007 June 21, 2019 Từ khóa » Html Css Col-md-2 Bootstrap Grid Examples - W3Schools Meaning Of Numbers In "col-md-4"," Col-xs-1", "col-lg-2" In Bootstrap Grid System - Bootstrap CSS · Bootstrap Meaning Of Numbers In “col-md-4”,“ Col-xs-1”, “col-lg-2” In Bootstrap Bootstrap Grid Examples - W3Schools Col-md-6 Col-lg-3 Col-xs-12 More Than 4 Col Code Example Containers - Material Design Bootstrap Layout And Grid System | Components | BootstrapVue General Layout - Katapult Site Admin Grid System - ACS Design System - American Chemical Society Padding And Margin Classes In Bootstrap 5 - Linux Hint CSS · Bootstrap 3.3.6 Documentation - BootstrapDocs Give The Col-md-1.5 In Bootstrap? - MSDN - Microsoft