08-28-2019 19:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-28-2019 19:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I tried.
In index.js
let myLabel = document.getElementById("myTime");
myLabel.style.fill = "Black";
In style.css
#myTime {
font-size: 40;
font-family: System-Bold;
text-length: 5;
text-anchor: middle;
x: 20%;
y: 20%;
fill: white;
}
but text disappeared.
Please help me.
Answered! Go to the Best Answer.

- Labels:
-
JavaScript
Accepted Solutions
08-28-2019 19:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-28-2019 19:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
08-28-2019 19:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-28-2019 19:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Try all lower case.
Gondwana Software
08-28-2019 19:43 - edited 08-28-2019 19:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-28-2019 19:43 - edited 08-28-2019 19:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Dear Catplace
Thank you for your answer.
The problem has been solved.
thank you very much.
