Today I have learned Grid in javascript

 Grid in javascript:

  • Gone are the days when we have to use crazy tables and CSS hacks. Define a grid container and specify the number of columns in HTML CSS first. #grid { display: grid; grid-template-columns: repeat (2, auto); } Use Javascript to add cells to the grid container. Create cell as many cells as required and append them to the grid. Yep, it’s that simple.
    • Below is an HTML code that defines the structure and styling of a webpage that displays an expanding card grid. The webpage uses the Flexbox layout module to create a responsive grid of cards that can be expanded or collapsed when clicked. The HTML document starts with the doctype declaration which specifies the version of HTML being used.
      • Place it as a cover, make it full-width, inset images or use them as thumbnails. component, with advanced features and capabilities. Place the cards in a grid system, make them scrollable horizontally or create a tinder-like swipe away layout Javascript Cards demo showing off how to include videos with and without description.
      • <div className="row">
                    {this.state.apps.map((service, index) => (
                      <div key={index} className="col-md-6 mb-6">
                        <div className="card d-flex h-100  apps1">
                          <div className="card-body d-flex flex-column">
                            {/* <h5 className="card-title">{service}</h5> */}
                            <p
                              className="card-text flex-fill"
                              style={{ fontSize: "50px" }}
                            >
                              {service}
                            </p>
                          </div>
                         
                          </div>
                      </div>
                       ))}
                  </div>
      •                                     Output:

Comments

Popular posts from this blog

Building a Full-Stack Student Management System with React.js and NestJS

Today I have solved the problem in javascript

Today I have solved problem in javascript