Found 1566 Articles for CSS

How to work with Flexbox elements in CSS?

Arjun Thakur
Updated on 25-Jun-2020 07:05:19

118 Views

Define a flex container and set the flex items in it.You can try to run the following code to learn how to implement Flexbox elements. Q1, Q2, Q3 here are the flex-items. The entire area is Flexbox elementExampleLive Demo                    .mycontainer {             display: flex;             background-color: orange;          }          .mycontainer > div {             background-color: white;             text-align: center;             line-height: 40px;             font-size: 25px;             width: 100px;             margin: 5px;          }                     Quiz                Q1          Q2          Q3          Q4          Q5          Q6          

CSS Flexbox Layout Module

Yaswanth Varma
Updated on 08-Jan-2024 14:53:56

207 Views

Even though CSS was designed to handle styling, web developers have always had a special issue when developing remarkable layouts, which nearly always requires the use of JavaScript. But Flexbox is here to make that different. For getting better understanding on the CSS flexbox layout module, let's dive into the article. CSS Flexbox Developers can design adaptable and flexible web page layouts with the help of the flexible property, which is an adaptable command. This property removes the need to define exact dimensions by allowing webpage elements to be sized and positioned relative to one another. Because it lets items ... Read More

CSS Grid Columns

Chandu yadav
Updated on 25-Jun-2020 06:57:52

135 Views

The vertical line in the following is called Grid Columns.

Usage of CSS align-content property flex-start value

Krantik Chavan
Updated on 04-Jul-2020 06:16:07

96 Views

Use the align-content property with value flex-start to set the flex lines in the beginning.ExampleYou can try to run the following code to implement the flex-start value −Live Demo                    .mycontainer {             display: flex;             height: 200px;             background-color: blue;             align-content: flex-start;             flex-wrap: wrap;          }          .mycontainer > div {             background-color: orange;             text-align: center;             line-height: 60px;             font-size: 30px;             width: 100px;             margin: 5px;          }                     Queue                Q1          Q2          Q3          Q4          Q5          Q6          Q7          Q8          

CSS Grid Elements

Arjun Thakur
Updated on 25-Jun-2020 06:56:38

302 Views

Grid Elements in CSS has parent and child elements. Here’s an example wherein a grid is created with 6 elements.ExampleLive Demo                    .container {             display: grid;             grid-template-columns: auto auto;             padding: 20px;          }          .ele {             background-color: orange;             border: 2px solid gray;             padding: 25px;             font-size: 20px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

CSS Grid Layout

Yaswanth Varma
Updated on 08-Jan-2024 14:55:32

602 Views

In the early days of web development, developers had to use a variety of tricks and workarounds to arrange elements on the screen in a way that produced results that were consistent across different browsers. However, these days almost everyone uses CSS's most popular layout tools—FlexBox and the Grid. One of the best grid-based websites is Reebok. In this article we are going to learn about the CSS grid layout. CSS Grid Layout A two-dimensional layout approach called CSS Grid Layout allows you to arrange content in rows and columns. It takes a top-down approach to layout, permits explicit item ... Read More

Use CSS max-width property responsive for video player

Nishtha Thakur
Updated on 04-Jul-2020 06:18:01

475 Views

You can try to run the following code to use a max-width property to make your video player responsive −ExampleLive Demo                          video {             max-width: 100%;             height: auto;          }                                                     To check the effect, you need to resize the browser.    

Role of CSS flex-direction property row-reverse value

George John
Updated on 04-Jul-2020 06:17:28

124 Views

Use the flex-direction property with row value to set the flex-items horizontally, from right to left.ExampleYou can try to run the following code to implement the row-reverse value −Live Demo                    .mycontainer {             display: flex;             flex-direction: row-reverse;             background-color: orange;          }          .mycontainer > div {             background-color: white;             text-align: center;             line-height: 40px;             font-size: 25px;             width: 100px;             margin: 5px;          }                     Quiz                Q1          Q2          Q3          Q4          Q5          Q6          

How to position text to top left position on an image with CSS

Smita Kapse
Updated on 04-Jul-2020 06:16:38

1K+ Views

To position text to top left, use the left and top property. You can try to run the following code to position text to left position on an image −ExampleLive Demo                    .box {             position: relative;          }          img {             width: 100%;             height: auto;             opacity: 0.6;          }          .direction {             position: absolute;             top: 10px;             left: 19px;             font-size: 13px;          }                     Heading One       Below image has text in the top left:                          Top Left Corner          

Use CSS width property for a responsive video player

Chandu yadav
Updated on 25-Jun-2020 06:12:23

152 Views

To make your video player responsive, use the width property and set it to 100%ExampleLive Demo                                 video {                width: 100%;                height: auto;             }                                                         To check the effect, you need to resize the browser.    

Advertisements