LeonLatex Posted October 12, 2021 Share Posted October 12, 2021 How do I set the color value with hex in w3-css? I tried w3-#009000, but it didnt work. I also tried w3-#009000; but that didn't work either. Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/ Share on other sites More sharing options...
requinix Posted October 12, 2021 Share Posted October 12, 2021 style="color: #009000" Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590918 Share on other sites More sharing options...
LeonLatex Posted October 12, 2021 Author Share Posted October 12, 2021 (edited) OK 🙂 I know that one, but i thought i could set a BG color on a W3-css bar with a hex valuea with w3-black. I will remeber that. Thanks 🙂 Isn't it posible to set a w3-#000000 at all? Edited October 12, 2021 by LeonLatex Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590919 Share on other sites More sharing options...
requinix Posted October 12, 2021 Share Posted October 12, 2021 18 minutes ago, LeonLatex said: Isn't it posible to set a w3-#000000 at all? CSS classes is not some magical transformation thing where you put some mystical letters on your HTML and it mysteriously gains some supernatural attributes like "makes the text black". They aren't some special codes you enter into your keyboard to unlock secret powers on a webpage. A class is a name. A simple name. And only a simple name. w3-#000000 is not a simple name. It's got this placeholder at the end that says "okay, I put some thing in here, now insert that somewhere else". And that does not work. Take some time away from memorizing the w3.css stuff to learn about what CSS is and how it works. Because w3.css is CSS. Not some fancy alternative to a prettier internet, but a bunch of pre-fabricated concepts that some people far out on the fringes of the world wide web decided would be Good Things™ that other people might want to copy. Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590921 Share on other sites More sharing options...
LeonLatex Posted October 12, 2021 Author Share Posted October 12, 2021 Maybe it's because w3-css is new to me, but the fact is that i know css wer y well from before. I am not in to css3 or w3 css, that i look at as a kind of containers with a lot of ready to use css scripts/syntax. I am the old school that like to have control over what i am doing and what is happening because of what i have done. I feel like i am loosing that control with w3-css. Because every thing is pre-made, but i have seen it like this is something i have to learn. So thats why i am strugling with this. At least, they could have left a little from the basic of CSS when making this (horse shit). I call it like that because i am loosing the control i am used to have before when i was working with this. But i still got it in me. I have some external .css files. Or... there is a advantage with w3-css. Since we got so many platforms to relate to as developers, it is probably an advantage that we are spared a lot of extra work to have our sites to fit all over. We didn't need to do that before. But beyond that .... I wish you a good night requinix. I am tired and have to go to bed soon. It has bean a looooong day. Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590924 Share on other sites More sharing options...
maxxd Posted October 12, 2021 Share Posted October 12, 2021 I'm not versed in CSS frameworks for personal reasons, but is the w3-css you're talking about actually associated with w3schools.com? If it is, given the quality of the rest of the content I've seen on that site drop it immediately and move on to something else. Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590925 Share on other sites More sharing options...
LeonLatex Posted October 12, 2021 Author Share Posted October 12, 2021 2 hours ago, maxxd said: I'm not versed in CSS frameworks for personal reasons, but is the w3-css you're talking about actually associated with w3schools.com? Yes, that's exactly what I was talking about. You probably threw out some "words" I left out and say. I'm too careful to say too much here yet because I'm fresh in here and do not know where the line is laid. Besides, I have been away from the "subject" for too long to be able to engage in longer discussions about what is good or bad. It's too much new and too much to get acquainted with right away in addition to the fact that I struggle to remember what I could from before. It is 11 years ago and more than that since I was involved in development. I dont know if you guys understand what i mean sometimes, but some times i realy struggle. And that's why i am so happy to find this site with so many good programmers and developers that is not afraid telling a Norwegian man (who feels so stupid) soon 50 years old how to do it even though he some times ask to much. Thank you 🙂 Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590929 Share on other sites More sharing options...
Solution Barand Posted October 12, 2021 Solution Share Posted October 12, 2021 9 hours ago, LeonLatex said: Isn't it posible to set a w3-#000000 at all? Of course you can <style type='text/css'> .w3-vomit { background-color: #f8b9ce; color: #c4ff4d; } </style> <h1 class="w3-vomit w3-padding">Example heading</h1> 1 Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590941 Share on other sites More sharing options...
LeonLatex Posted October 12, 2021 Author Share Posted October 12, 2021 4 hours ago, Barand said: Of course you can <style type='text/css'> .w3-vomit { background-color: #f8b9ce; color: #c4ff4d; } </style> <h1 class="w3-vomit w3-padding">Example heading</h1> barand, thanks 🙂 (vomit, that was a good one 🤣😜) Quote Link to comment https://forums.phpfreaks.com/topic/313948-w3-css-with-color-value/#findComment-1590947 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.