The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Really Basic HTML Issue, heading and input colors appear in safari but not chrome
Evinrude57
post Apr 15 2021, 11:29 AM
Post #1





Group: Members
Posts: 1
Joined: 15-April 21
Member No.: 27,896



I cannot get the color attribute for my headings and form inputs to appear in chrome, which is the browser I am using for code development, but the colors do appear in safari.

I am using very simple html code shown below but with no success in chrome. Headings are black instead of the desired color:

<!doctype html>
<html>
<head>
<style>
h1 {
color: red;
}
</style>
</head>
<body>
<h1>This is an h1 heading</h1>
<h1 style="color:yellow;">This header is now yellow</h1>
</body>
</html>

Any suggestions?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 15 2021, 11:48 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



See no reason for that.

Is the real page just like that, with the CSS embedded? We had a problem yesterday when Chrome didn't display the CSS. It turned out the style sheet was named AD.css and Chrome's ad blocker killed it...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
TW Allen
post Apr 15 2021, 05:29 PM
Post #3


Member
***

Group: Members
Posts: 42
Joined: 12-April 21
Member No.: 27,890



QUOTE(pandy @ Apr 15 2021, 11:48 AM) *

See no reason for that.

Is the real page just like that, with the CSS embedded? We had a problem yesterday when Chrome didn't display the CSS. It turned out the style sheet was named AD.css and Chrome's ad blocker killed it...


Yes, the ad blocker was the problem. I renamed it and it works fine.

Thank you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 15 2021, 05:37 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



Surely that can't be the problem here though? I see nothing resembling an ad in the OP's code example.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 15 2021, 05:43 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



If the real page uses external CSS we don't know what the file is called... Odd if this one was also called ad.css though. tongue.gif
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:23 AM