Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/loosedwhale/grid_website_assigment


https://github.com/loosedwhale/grid_website_assigment

assignment css css3 html html5

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# Grid Website Assigment

## Seeing how gride works on webstites usin `html` and `css`

Languages and Tools:


css3 html5

# Using CSS Grid in HTML and CSS

## Introduction

CSS Grid is a powerful layout system that allows you to design complex web layouts with ease. It provides a two-dimensional grid-based layout system that is ideal for both simple and intricate designs. This guide will help you understand the basics of using CSS Grid in your HTML and CSS to create responsive and flexible layouts.

## Getting Started

To use CSS Grid in your project, follow these steps:

### 1. Create Your HTML Structure

```html





Your Web Page

```
### 2. Link Your CSS Stylesheet
Create a styles.css file and link it in your HTML file. This is where you'll define your grid layout.

### 3. Define Your CSS Grid
In your styles.css, define the grid container and its items:

```css
body {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Three equal columns */
grid-gap: 20px; /* Adjust the gap between grid items */
}

/* Example grid item styling */
.grid-item {
background-color: #ddd;
padding: 20px;
text-align: center;
}
```

## Basic Concepts
### 1. Grid Container Properties
`display: grid;`: Defines the element as a grid container.\
`grid-template-columns`: Specifies the size and number of columns.\
`grid-template-rows`: Specifies the size and number of rows.\
`grid-gap`: Creates space between grid items.
### 2. Grid Item Properties
`grid-column`: Specifies the item's position in the grid columns.\
`grid-row`: Specifies the item's position in the grid rows.\
`grid-area`: Combines `grid-row` and `grid-column` into a single shorthand property.

## Example Usage
```css


Item 1

Item 2

Item 3



```
## Advanced Features
CSS Grid offers advanced features such as grid template areas, auto placement, and responsive design. Explore these features to enhance your layout capabilities.

For more detailed information, refer to the [CSS Grid Guide](https://css-tricks.com/snippets/css/complete-guide-grid/).

Feel free to customize the grid properties based on your project's requirements and design preferences.