xris
February 17, 2023, 1:14pm
1
‘’
the css styling…
.inline {
width: unset;
margin: 0 0.5em 0 0;
vertical-align: middle;
}
#terms-and-conditions {
text-color: #dfdfe2;
}
the html code
<label for="terms-and-conditions">
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
</label>
hbar1st
February 17, 2023, 2:22pm
2
hi there, do you have a question?
please add your question to your post above and provide a link to the challenge
xris
February 17, 2023, 2:44pm
3
here’s the challenge "
Last, but not least, change the text color of the terms and conditions
link to #dfdfe2
.
<fieldset>
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
<label for="terms-and-conditions">
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
</label>
</fieldset>
hbar1st
February 17, 2023, 5:46pm
4
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
1 Like
hbar1st
February 17, 2023, 5:47pm
5
can you post a link to the challenge?
Can you also post all the code? (if the challenge is about making a css changes, then we need to see all your css)
xris
February 18, 2023, 12:52pm
6
yes it’s about my css, here’s the code:
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #1b1b32;
color: #f5f6f7;
font-family: Tahoma;
font-size: 16px;
}
h1, p {
margin: 1em auto;
text-align: center;
}
form {
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
padding-bottom: 2em;
}
fieldset {
border: none;
padding: 2rem 0;
border-bottom: 3px solid #3b3b4f;
}
fieldset:last-of-type {
border-bottom: none;
}
label {
display: block;
margin: 0.5rem 0;
}
input,
textarea,
select {
margin: 10px 0 0 0;
width: 100%;
min-height: 2em;
}
input, textarea {
background-color: #0a0a23;
border: 1px solid #0a0a23;
color: #ffffff;
}
.inline {
width: unset;
margin: 0 0.5em 0 0;
vertical-align: middle;
}
#terms-and-conditions {
text-color: #dfdfe2;
}
input[type="submit"] {
display: block;
width: 60%;
margin: 1em auto;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f;
border-color: white;
min-width: 300px;
}
input[type="file"] {
padding: 1px 2px;
}
hbar1st
February 18, 2023, 2:01pm
7
thanks, but pls post a link to the challenge also