The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Part of css not working?
KenHorse
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
spalisetty
post Sep 2 2020, 02:43 AM
Post #3


Novice
**

Group: Members
Posts: 22
Joined: 2-August 20
Member No.: 27,469



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 05:50 AM