[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 22 days ago in CSS by Mystic

Explain rem, px and em

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

how to add css to html

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

Asked 4 months ago in CSS by Charllotte

how do i underline in css

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

what is the meaning of this santance transform:translate(-50%,-50%)

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

Asked 5 months ago in CSS by Jessica

how do i move my title closer to the top of my page

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

Asked 5 months ago in CSS by Chivimbiso

why can't the contact details align to the center?

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

Asked 5 months ago in CSS by Hasania

write me a code that when customer hovers above a element the color changes

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

Code to format mobile view size and desktop view size

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

How can I add a comment in css?

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

Asked 9 months ago in CSS by Modupe

What is line height used for

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

Asked 9 months ago in CSS by Pogiso Pamla

how to reduce a the <hr> line

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

Asked 9 months ago in CSS by Shalom

make font weight thin css

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

Asked 9 months ago in CSS by Ани

Can I hide a paragraph under an image?

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

How can I increase the size of a div in my code?

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

Asked 9 months ago in CSS by Margaret

what css code that can make the text curve like a smile?

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

How do you make images smaller to fit page

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

How do you move text to center

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

mixins examples sass

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

Asked 10 months ago in CSS by cathrine

how to underline the h1 in css

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

what is line-height

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

how to get an a element to underline when hovered over

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

Asked 11 months ago in CSS by Nondumiso

how to add css gradient

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

how could i make the backgorund have little stars or specs on it

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

Asked 11 months ago in CSS by PATRICIA

how to make sure the content doesnt get out on the DIV

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

my heading (h1) is gold. how do i add a think black text outline

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

how do i get my pics to be in the same line with the same size proportions?

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

how to order a list vertically

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

how to get text to appear when hovering over div

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

how to make animated social madia icon

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

Asked 11 months ago in CSS by Kristina

how to get a hover transition for background element

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

Asked 11 months ago in CSS by Kristina

how do you get a hover for a background but not a button

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

Asked 11 months ago in CSS by Leyla Maria

how to center a span?

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

What is SASS? What are the advantages of using it?

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

how to align a list

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

Asked 11 months ago in CSS by Leyla Maria

can't I apply linear gradients to fonts?

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

I need a grid system that is 2 columns, but the second column has multiple rows and the first column does not

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

Asked 11 months ago in CSS by Pin Hsuan

How to put underline in CSS

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

What does object-fit means ?

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

Give me a list of css colors. Show me how to make light/dark colors.

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

Asked 11 months ago in CSS by TrαΊ§n

How to make the text scale down as the container get smaller

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

what's text-decoration ?

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

what is line height in css

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

Asked 12 months ago in CSS by Dorothea

how do I comment in css

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

Asked 12 months ago in CSS by Sukoluhle

make font weight thin in css

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

Asked 1 year ago in CSS by nirmean100

what does rem in css mean?

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

What is the font-weight?

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

Asked 1 year ago in CSS by Benedicta

what is text-decoration

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

Asked 1 year ago in CSS by Stephanie

how can I add my own icon to the select?

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

Asked 1 year ago in CSS by Mkpouto

How do I place emojis on top of each other using relative position

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

Asked 1 year ago in CSS by Keysha

what is the css property to change font weight