Need help with a noob question

miniblicher

Junior Member
Joined
Mar 11, 2019
Messages
164
Reaction score
78
Hi Iam trying to change the color from black to white. But it will not change.
I have tried add font-color:;"color_white; But it will not help.

Any quick coders that can help out?


#question h1{
font-size: 50px;
font-weight: bold;
font-color:;"color_white;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
position: absolute;
padding: 0;
margin: 0;
top:50%;
-webkit-transform:translate(0,-50%);
transform:translate(0,-50%);
 
Do it like this:

Code:
#question h1{
        font-size: 50px;
        font-weight: bold;
       font-color:rgb(255,255,255);
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        position: absolute;
        padding: 0;
        margin: 0;
        top:50%;
        -webkit-transform:translate(0,-50%);
                transform:translate(0,-50%);
}
Btw, I added the curly brace that was missing from your rule. Make sure that you don't mess that up when you paste the rule. If everything else works fine, then just change the font-color line.
 
Do it like this:

Code:
#question h1{
        font-size: 50px;
        font-weight: bold;
       font-color:rgb(255,255,255);
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        position: absolute;
        padding: 0;
        margin: 0;
        top:50%;
        -webkit-transform:translate(0,-50%);
                transform:translate(0,-50%);
}
Btw, I added the curly brace that was missing from your rule. Make sure that you don't mess that up when you paste the rule. If everything else works fine, then just change the font-color line.

Still dosent work


Skærmbillede 2019-12-03 kl. 11.24.51.png
Skærmbillede 2019-12-03 kl. 11.24.51.png
 
Oh I see...

use color instead of font-color. font-color is an invalid property.

I mean
Code:
#question h1{
        font-size: 50px;
        font-weight: bold;
        color:rgb(255,255,255);
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        position: absolute;
        padding: 0;
        margin: 0;
        top:50%;
        -webkit-transform:translate(0,-50%);
                transform:translate(0,-50%);
}
 
Oh I see...

use color instead of font-color. font-color is an invalid property.

I mean
Code:
#question h1{
        font-size: 50px;
        font-weight: bold;
        color:rgb(255,255,255);
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        position: absolute;
        padding: 0;
        margin: 0;
        top:50%;
        -webkit-transform:translate(0,-50%);
                transform:translate(0,-50%);
}

WHAT A LEGEND :D It work Thanks alot
 
do you know how I make it a click link?
 
Check your inbox OP.

If you meant that black, big h1 text; then go to line 158-159 of the demo you provided, and replace it with following...

Code:
d3.select("#question h1")
                        .html("<a href='yourlink'>" + data[picked].question + "</a>");


P.S. -> Sorry for double post, can't edit the old one anymore.
 
Back
Top