Part of css not working? |
Part of css not working? |
KenHorse |
Aug 21 2020, 02:19 PM
Post
#1
|
Group: Members Posts: 3 Joined: 27-September 18 Member No.: 26,719 |
I have the following lines in a stylesheet.css on a Debian 10 (Buster) system, running the latest Apache2, PHP, etc., on a pc computer:
CODE RED { color:red; } I use <RED> in my HTML where needed and it works fine However, running the exact same file on a RaspBerry Pi running Raspbian Buster but the <RED> doesn't work. Where should I look? |
pandy |
Aug 21 2020, 02:28 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Know nothing about Rasberry and browsers that may run on it. But while some browsers may style self-invented elements like your RED it isn't kosher HTML. I assume this is HTML and not XML? Try a proper HTML element with the class 'red' instead.
|
spalisetty |
Sep 2 2020, 02:43 AM
Post
#3
|
Novice Group: Members Posts: 22 Joined: 2-August 20 Member No.: 27,469 |
I have the following lines in a stylesheet.css on a Debian 10 (Buster) system, running the latest Apache2, PHP, etc., on a pc computer: CODE RED { color:red; } I use <RED> in my HTML where needed and it works fine However, running the exact same file on a RaspBerry Pi running Raspbian Buster but the <RED> doesn't work. Where should I look? What is red? is it a class or id or element? |
pandy |
Sep 2 2020, 08:10 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
I have no idea, since you didn't show the corresponding HTML. But the way your CSS is written, 'red' refers to an element RED, and such an element doesn't exist in HTML.
|
Lo-Fi Version | Time is now: 28th March 2024 - 05:50 AM |