File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 77 CSS Solutions: How to fill a box with an image without distorting it
88 </ title >
99 < link rel ="stylesheet " href ="styles.css " />
10- < style >
10+ < style class =" editable " >
1111 .wrapper {
1212 height : 200px ;
1313 display : flex;
1414 gap : 20px ;
1515 }
1616
1717 .box {
18- flex : 1 ;
1918 border : 5px solid # 000 ;
20- border-radius : 0.5em ;
2119 }
22- </ style >
2320
24- < style class ="editable ">
2521 .box img {
2622 width : 100% ;
2723 height : 100% ;
2824 }
25+
2926 .box1 img {
3027 object-fit : cover;
3128 }
5047 </ section >
5148
5249 < textarea class ="playable playable-css " style ="height: 300px ">
50+ .wrapper {
51+ height: 200px;
52+ display: flex;
53+ gap: 20px;
54+ }
55+
56+ .box {
57+ border: 5px solid #000;
58+ }
59+
5360.box img {
5461 width: 100%;
5562 height: 100%;
You can’t perform that action at this time.
0 commit comments