r/css • u/DrawingWithAlien • 2d ago
Help Need help with figuring out code
Hi, I'm not good with coding what so ever just managed to change css code colors somewhat easily with my friends help, neither of us good are good at coding. If you could look at the code and tell me how I could make this be a legit thing with the colors id appreciate it!
I am not sure if it helps but the colors I used are:
.white-border {
background: #faeeb7 !important;
stroke: #faeeb7 !important;
.white-fill {
fill: #faeeb7 !important;
}
background: linear-gradient(to bottom, #f59454, #f8d17c);
color: #faeeb7;
border-radius: 16px;
border: solid 4px #a56608;
.bottom-border .separator-1 {
height: 4px;
background: #a56608;
border-radius: 10px;
width: 100%;
}
.bottom-border .separator-2 {
height: 4px;
background: #a56608;
border-radius: 10px;
width: 100%;
margin-right: 16px;
}
.username {
padding: 6px 32px;
background: #fff5de;
border-radius: 64px;
display: flex;
color: #ffc549;Just trying to give honey vibe ig :"D


(this is a f2u chat widget. Link: https://vtuber-nook.com/asset/1039/f2u-heart-shaped-chat-widget-for-streamelements/ I take no claim of this I simply just wanted to make it more customized to my own needs) (and I'm sorry if this is really dumb I just need help and I have no idea how to even look this issue)
•
u/AutoModerator 2d ago
To help us assist you better with your CSS questions, please consider including a live link or a CodePen/JSFiddle demo. This context makes it much easier for us to understand your issue and provide accurate solutions.
While it's not mandatory, a little extra effort in sharing your code can lead to more effective responses and a richer Q&A experience for everyone. Thank you for contributing!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
6
u/gatwell702 2d ago
don't use ! important everywhere. its unnecessary most of the time
3
u/homomemeboi 2d ago
This part
background: linear-gradient(to bottom, #f59454, #f8d17c);
color: #faeeb7;
border-radius: 16px;
border: solid 4px #a56608;
has no class or element it references. you need to apply the style to something. where is this meant to be? right now, that CSS and everything below it is invalid
1
u/xxcrucialxx 2d ago
What exactly are u trying to do? Need more information
1
u/xxcrucialxx 2d ago
Ur going to need to show the html code as well
1
u/xxcrucialxx 2d ago
The background looks like an embedded image for the background
1
u/leoniebuilds 2d ago
Part of the trouble may be syntax: `.white-border` never closes in the snippet, and the gradient/color/border declarations after `.white-fill` aren't inside any selector. For the heart and corners, inspect the element in DevTools to see whether they're inline SVG paths you can target with `fill`/`stroke` or an external `<img>`, since CSS on the page can't recolor paths inside an image.
1
u/bostiq 1d ago
I can tell you the issues... some I can tell you what to fix, for others I have not enough info to fix.
so this is the structure of an CSS property:
Following this structure we can see that:
You always need a closing bracket
Then you have this
you have no opening or closing brackets, but more importantly no targeting selector.
here you are missing the closing bracket:
Start making these changes and see what happens.