[CSS] - How to make a sidebar wider in CSS using | SheCodes

[CSS] - How to make a sidebar wider in CSS using grid-template-columns

Learn how to update the grid-template-columns property in CSS to make a sidebar wider in your web page layout.

πŸ‘©β€πŸ’» CSS Code instructions

In this code in css , how can i make my sidebar wider { font-family: "Roboto"; scroll-behavior: smooth; list-style: none; text-decoration: none; } body { background: var(--background-color); } .container { display: grid; grid-template-columns: 100px 1fr 1fr; grid-template-rows: 100px 1fr; grid-gap: 20px; height: 100vh; } .header { grid-column: 1 / span 3; background-color: #333; color: #fff; text-align: center; font-size: 20px; position: fixed; top: 0; left: 0; width: 100%; background: var(--bs-info-gradient); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.02); padding: 0.5rem 5%; display: flex; align-items: center; justify-content: space-between; z-index: 1000; } .sidebar { grid-column: 1 / span 1; grid-row: 1 / span 2; display: grid; grid-template-rows: repeat(7, 1fr); grid-gap: 10px; background-color: var(--bs-log); color: #fff; text-align: center; margin-top: 40px; } .sidebar a { display: flex; flex-direction

More coding questions about CSS

πŸ‘©β€πŸ’» Technical question

Asked 4 hours ago in CSS by Kaylyn

how to put text over an image but only on the right side

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Justine

what is inherit color

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Justine

what is a * in css code

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Zawadi

how do you make emojis appear as a drop down list on CSS without using HTML?

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Zawadi

difference between fixed, sticky, relative, absolute and static positionings on CSS

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Zawadi

difference between fixed, sticky, relative, absolute and static positioning on CSS

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Zawadi

difference between sticky, relative, absolute and static positioning on CSS

πŸ‘©β€πŸ’» Technical question

Asked 1 day ago in CSS by Zawadi

difference between relative, absolute and static positioning on CSS

πŸ‘©β€πŸ’» Technical question

Asked 4 days ago in CSS by DESTINY

how to reduce image size css

πŸ‘©β€πŸ’» Technical question

Asked 4 days ago in CSS by DESTINY

how to move a button to the right in css

πŸ‘©β€πŸ’» Technical question

how do you upload an image as a background code

πŸ‘©β€πŸ’» Technical question

Asked 7 days ago in CSS by Nathalia

how do you do 3 images beside each other?

πŸ‘©β€πŸ’» CSS Code instructions

Asked 8 days ago in CSS by still

Create space between two buttons

πŸ‘©β€πŸ’» Technical question

Asked 8 days ago in CSS by still

How to create space between two buttons

πŸ‘©β€πŸ’» Technical question

Asked 8 days ago in CSS by still

How to change the colour of a button

πŸ‘©β€πŸ’» Technical question

Asked 9 days ago in CSS by Maria

where does the css go in the head?

πŸ‘©β€πŸ’» Technical question

Asked 12 days ago in CSS by chris

how do i force a div box to scroll if there's an overflow on the y axis

πŸ‘©β€πŸ’» Technical question

Asked 14 days ago in CSS by Laura

how can i make my button center for a responsive website?

πŸ‘©β€πŸ’» Technical question

Asked 14 days ago in CSS by Laura

can you explain the steps to using @media {} with my project in css

πŸ‘©β€πŸ’» Technical question

Asked 14 days ago in CSS by Laura

i made a container for my text with a background opacity but anytime i try to reduce the width it uncenters my text, what should i do?

πŸ‘©β€πŸ’» Technical question

Asked 15 days ago in CSS by Zawadi

How can I center an image on my CSS and HTML

πŸ‘©β€πŸ’» Technical question

Asked 18 days ago in CSS by Marelyn

using css style make an image size larger

πŸ‘©β€πŸ’» Technical question

Asked 18 days ago in CSS by Marelyn

use css to size up an image

πŸ‘©β€πŸ’» Technical question

Asked 18 days ago in CSS by chris

how do i force a background to fullscreen instead of tiling

πŸ‘©β€πŸ’» Technical question

Asked 18 days ago in CSS by chris

how do i make letters appear closer together

πŸ‘©β€πŸ’» Technical question

Asked 19 days ago in CSS by Shayanne

How can I center a li element when it is a display: inline-block

πŸ‘©β€πŸ’» Technical question

Asked 24 days ago in CSS by Sarah

shadow around button css

πŸ‘©β€πŸ’» Technical question

Asked 28 days ago in CSS by Marelyn

CSS style to add space for text

πŸ‘©β€πŸ’» Technical question

difference between font size and font weight

πŸ‘©β€πŸ’» Technical question

Asked 1 month ago in CSS by Shuwekha

Why is my code showing up as full screen on computers but not on mobile phones?

πŸ‘©β€πŸ’» Technical question

using css style how do i remove the underline for links

πŸ‘©β€πŸ’» Technical question

when using flex style i noticed there is a space on the end right, why? it is not margin or padding because i have checked and it is set to 0,

πŸ‘©β€πŸ’» Technical question

Asked 1 month ago in CSS by Celeste

how to centre an element in css

πŸ‘©β€πŸ’» Technical question

Asked 1 month ago in CSS by Celeste

how to change colour of body

πŸ‘©β€πŸ’» HTML, CSS and JavaScript Code instructions

write me css code that formats links to be underlined

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Viktoriia

What is pointer-events?

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Viktoriia

How to create a triangle in CSS?

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Viktoriia

Why does z-index not work on static elements?

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Viktoriia

Why does height: 100% sometimes not work?

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Viktoriia

Why margin: auto; works only when width is set?

πŸ‘©β€πŸ’» Technical question

create two containers side by side with CSS

πŸ‘©β€πŸ’» Technical question

add border to container

πŸ‘©β€πŸ’» Technical question

explain CSS positioning

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Mandipa

what is the command prompt to underline when using css

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Thomas

how do i make a h1 tag transparent

πŸ‘©β€πŸ’» Technical question

What is the difference between positioning and flexbox in CSS?

πŸ‘©β€πŸ’» Technical question

how can i target the hr element from css, to change its color

πŸ‘©β€πŸ’» Technical question

Asked 2 months ago in CSS by Carolina

Athena, how can i make a navbar be 100%?

πŸ‘©β€πŸ’» Technical question

what's a box shadow and when do i use it?

πŸ‘©β€πŸ’» Technical question

What is an html border-radius