151
152
153
154
155
156
157
 
 

I have a .container div just after body that contains everything in page how to center it?

158
Bring The Color (nerdy.dev)
submitted 7 months ago by to c/css@programming.dev
159
160
161
CSS Wrapped 2025 (css-tricks.com)
submitted 7 months ago by to c/css@programming.dev
162
163
164
CSS Text Grow (nerdy.dev)
submitted 7 months ago by to c/css@programming.dev
165
166
167
168
169
 
 

The background:

Some CSS properties such as background-image, text-shadow etc... take multiple values. But if my understanding is correct, the multiple values must come from the same statement. Is there any way to make it such as eg.: a CSS class appends a value to a property that already has a value?

/* CSS */

div.gradient1 {
	background: linear-gradient(60deg, red 0%, orange 50%, red 100%);
}

div.gradient2 {
	background: radial-gradient(at center, blue 10%, teal 50%, transparent 50%);
}

This fails (applies only one of the two gradients):

<div class="gradient1 gradient2"> ... 

Can I modify gradient2 somehow to make it happen? Or is something like this not supported in CSS?

div.gradient2 {
	background: currentBackground, radial-gradient(at center, blue 10%, teal 50%, transparent 50%);
}

170
171
172
173
174
175
view more: ‹ prev next ›