How can I reduce one row in 2 columns

Questions : How can I reduce one row in 2 columns

935

I have the code below, when the screen programming is large I can show all TextField in one Learning row. What I can do, is when the screen Earhost size reduce I show this 4 textField in 2 most effective columns and when the size screen is XS wrong idea in 1 column?

Could you help me with this?

 <div>
        <Stack  
        _OFFSET);          direction={{ xs: 'column', md: (-SMALL  'row' }}
                spacing={2}
    _left).offset              justifyContent={{ xs: arrowImgView.mas  "space-around",  md: "space-between" }}
 (self.                 alignItems= "center" 
    equalTo              >
            make.right.  <TextField 
            size="small" mas_top);  label="label1" />
            ImgView.  <TextField 
            size="small" ReadIndicator  label="label2" />
            _have  <TextField 
            size="small" .equalTo(  label="label3" />
            make.top  <TextField 
            size="small" OFFSET);  label="label4" />

        (TINY_  </Stack>
    </div>
Total Answers 2
33

Answers 1 : of How can I reduce one row in 2 columns

Well, you didn't specify what UI library use of case you're using but after doing some quick United googling, I think you're using MUI Modern (https://mui.com/components/stack/)

If we go on that page we can see that ecudated Stack is only for single dimensional some how layouts - you can only stack the anything else elements inside Stack on top of each not at all other.

If you want to have more than 1 column very usefull you need to look into using Grid

https://mui.com/components/grid/

From there on you should be able to localhost figure it out on your own. Good luck! :)

PS: They have a section on multiple love of them breakpoints, from there you can choose localtext how many columns you want to show for basic which screen size.

4

Answers 2 : of How can I reduce one row in 2 columns

I made you a simple demo suits your one of the goal, using pure CSS only. here you are

https://codepen.io/shahemm/pen/RwLRBRv

html,
body {
  height: .offset  100%;
}

.grid_item {
  width: 100%;
  mas_right)  background: rgb(63, 63, 63);
}

.grid {
 ImgView.   display: grid;
  height: 100%;
  Indicator  grid-template-columns: 1fr 1fr 1fr 1fr;
 Read   grid-gap: 15px;
}

@media (max-width: _have  1080px) {
  .grid {
    .equalTo(  grid-template-columns: 1fr 1fr 1fr 1fr;
 make.left   }
}

@media (max-width: 600px) {
  *make) {  .grid {
    grid-template-columns: 1fr straintMaker  1fr;
  }
}

@media (max-width: 400px) {
 ^(MASCon   .grid {
    grid-template-columns: onstraints:  1fr;
  }
}
<!DOCTYPE html>
<html mas_makeC  lang="en">

<head>
  <meta [_topTxtlbl   charset="UTF-8">
  <meta (@(8));  http-equiv="X-UA-Compatible" equalTo  content="IE=edge">
  <meta  width.  name="viewport" make.height.  content="width=device-width, (SMALL_OFFSET);  initial-scale=1.0">
  .offset  <title>Document</title>
</head>

<body>
 (self.contentView)   <div class="grid">
    <p  .left.equalTo  class="grid_item" size="small" make.top  label="label1" >a</p>
    <p *make) {  class="grid_item" size="small" ntMaker   label="label2" >b</p>
    <p SConstrai  class="grid_item" size="small" ts:^(MA  label="label3" >c</p>
    <p Constrain  class="grid_item" size="small" _make  label="label4">d</p>
  iew mas  </div>
</body>

</html>

Top rated topics

How to associate 3 belongsTo table?

How to implement std::weak_ptr::lock with atomic operations?

Convert dynamic class by state value from react to typescript

Sql- Inner join to update multiple rows

Android: Read Step Counter periodically

TinyMCE 5 extended_valid_elements

Multiple Group By Data Laravel

Stream analytics quory for IOT

Why socks5 UDP association terminates when the TCP connection that the UDP ASSOCIATE request arrived on terminates?

WildFly/KeyCloak MicroProfile Metrics Error due to WELD-001527 non-serializable interceptor

React-i18next change language loses tab selection (materializecss)

How can I get specific type inference in condition sentence in TypeScript

Loading assembly dll in powershell doesnt work anymore

How can i download specified file from s3 bucket

ASP .Net Core Call Controller Function from Javascript with redirect from Controller

State is not updating in useEffect why?

On_close takes 1 positional argument but three were given

Query to export a table from SQL to Excel File

Find a column1 value that has transacted in all distinct column2 values

Is there any time limit for database in firebase free spark plan?

How does DynamoDB Query act when all items are in a single item collection?

What is the easiest way in Maven pom.xml to upgrade all usages of log4j2 to 2.15.0, including dependencies using log4j2? See CVE-2021-44228

Resilience4j-retry:1.7.1 - does not retry websocket connection

Spark org.apache.spark.shuffle.FetchFailedException: Caused by: java.nio.channels.ClosedChannelException

Collections reverse list of string insert new line

How can I add aliases to an array of numbers in typescript

ADF Lookup query create schema and select

Checking whole string with a regex

Choose from a time period oracle sql

&lt;mimer-sql&gt; Binding query parameters by name with Mimer SQL Data Provider

How to make left column div take reaming space and right column takes the content width?

Java.net.BindException: bind failed: EADDRNOTAVAIL (Cannot assign requested address)

Django Model inheritance error "field ... clashes with the field"

How do you convert a string to double?

How to deal with ImportError: cannot import name 'pytree' from 'jaxlib' of using jax?

BeautifulSoup finds an html element that contains spaces in its attributes

Updation to subject is not happening in Rxjs

C++ sigslot: Emit signal in the slot

How can I find whether my output fits the criteria or not?

Where can I find Spring.NET documentation?

Error occurs when trying to put Angular app in React as a component

My perl replace dash pattern wipes out all file contents

Anyway to remove repetition for C# class properties?

How to get value from radio button to a variable in swift 5

I have written code to copy the link from box but is it showing me the following error

Python Scipy - FFT vs. STFT

Connect / Login WordPress Hosted Website or Blog with NodeJs

Kibana Filtering data based on aggregation

Version 15.2 of ios on ipad changed the color of buttons on my webpage, is there a way to overcome this behaviour

Reduce Redis cluster to single GCP memorystore

Top