+ 2
Background a table in CSS
Hello guys, i'm actually trying to make a changelog website and set these news in tables. I encounter a problem when i need to set a background on it. Would set a background radial-gradient on it but it doesn't work, can you explain to me please ? Thank you
4 Antworten
+ 2
I am no good with web codes, but I tried to change your code a little bit, and managed to apply gradient effect in Code Playground, although it's a linear not a radial one.
You may need to adjust #calendrier color though, a combination of .changelog gradient gray~black with the #calendrier black text color makes some of the table column become invisible.
[CSS]
.changelog {
background:-webkit-linear-gradient(grey,black);
}
[HTML]
<table class="changelog center" id="calendrier">
Here are some relevant resources related to the question:
[w3schools - CSS gradient]
https://www.w3schools.com/css/css3_gradients.asp
[Break free from CSS prefix hell]
https://www.sololearn.com/Discuss/830931/break-free-from-css-prefix-hell
[CSS prefix hell]
https://www.sololearn.com/Discuss/416434/css-prefix-hell
[SO - List of CSS vendor prefixes]
https://stackoverflow.com/questions/5411026/list-of-css-vendor-prefixes
P.S. Next time you want to ask a code related question be sure to attach/link the code with your question, it is the best way to get people to understand your problem clearly : )
Hth, cmiiw
+ 1
you can see https://www.w3schools.com/cSS/css_table.asp
0
Thank you very much <3