Really Basic HTML Issue, heading and input colors appear in safari but not chrome |
Really Basic HTML Issue, heading and input colors appear in safari but not chrome |
Evinrude57 |
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? |
pandy |
Apr 15 2021, 11:48 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 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... |
TW Allen |
Apr 15 2021, 05:29 PM
Post
#3
|
Member Group: Members Posts: 42 Joined: 12-April 21 Member No.: 27,890 |
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. |
Christian J |
Apr 15 2021, 05:37 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,656 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.
|
pandy |
Apr 15 2021, 05:43 PM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 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.
|
Lo-Fi Version | Time is now: 26th April 2024 - 09:08 AM |