Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Part of css not working?

Posted by: KenHorse Aug 21 2020, 02:19 PM

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?

Posted by: pandy Aug 21 2020, 02:28 PM

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.

Posted by: spalisetty Sep 2 2020, 02:43 AM

QUOTE(KenHorse @ Aug 21 2020, 02:19 PM) *

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?

Posted by: pandy Sep 2 2020, 08:10 AM

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.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)