[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

Asked 1 year ago in CSS by Muriel

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

How can I add a comment in css?

👩‍💻 Technical question

Asked 2 months ago in CSS by Modupe

What is line height used for

👩‍💻 Technical question

Asked 2 months ago in CSS by Pogiso Pamla

how to reduce a the <hr> line

👩‍💻 Technical question

Asked 2 months ago in CSS by Shalom

make font weight thin css

👩‍💻 Technical question

Asked 2 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 2 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 3 months ago in CSS by cathrine

how to underline the h1 in css

👩‍💻 Technical question

Asked 3 months ago in CSS by Memory

what is line-height

👩‍💻 Technical question

how to get an a element to underline when hovered over

👩‍💻 Technical question

Asked 4 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 4 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

Asked 4 months ago in CSS by Sophie

how to get text to appear when hovering over div

👩‍💻 Technical question

how to make animated social madia icon

👩‍💻 Technical question

Asked 4 months ago in CSS by Kristina

how to get a hover transition for background element

👩‍💻 Technical question

Asked 4 months ago in CSS by Kristina

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

👩‍💻 Technical question

Asked 4 months ago in CSS by Leyla Maria

how to center a span?

👩‍💻 Technical question

Asked 4 months ago in CSS by Yasmin

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

👩‍💻 Technical question

how to align a list

👩‍💻 Technical question

Asked 4 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 4 months ago in CSS by Pin Hsuan

How to put underline in CSS

👩‍💻 Technical question

Asked 4 months ago in CSS by Boziek

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 5 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 5 months ago in CSS by Dorothea

how do I comment in css

👩‍💻 Technical question

Asked 5 months ago in CSS by Sukoluhle

make font weight thin in css

👩‍💻 Technical question

Asked 5 months ago in CSS by nirmean100

what does rem in css mean?

👩‍💻 Technical question

What is the font-weight?

👩‍💻 Technical question

Asked 5 months ago in CSS by Benedicta

what is text-decoration

👩‍💻 Technical question

Asked 5 months ago in CSS by Stephanie

how can I add my own icon to the select?

👩‍💻 Technical question

Asked 5 months ago in CSS by Mkpouto

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

👩‍💻 Technical question

Asked 6 months ago in CSS by Keysha

what is the css property to change font weight

👩‍💻 Technical question

Asked 6 months ago in CSS by Keysha

what is the css property for underline

👩‍💻 Technical question

Asked 6 months ago in CSS by Meghan

How to change font weight?

👩‍💻 Technical question

Asked 6 months ago in CSS by Emmanuela

how to make h1 font-wight thin

👩‍💻 Technical question

Asked 6 months ago in CSS by Lucía

what is :after

👩‍💻 Technical question

Asked 6 months ago in CSS by Sunita

What is overflow in css?

👩‍💻 Technical question

Asked 6 months ago in CSS by Sepideh

how to underline a text in css?

👩‍💻 Technical question

Asked 6 months ago in CSS by Demetriana

how do you change the color of an <hr />

👩‍💻 Technical question

how do i make font-weight thin with css