Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCarman A
7,672 PointsHelp with selecting input
Ok so I'm working on a contact form where after a field is selected another one appears. But the problem is when I select the text-area the e-mail field disappears. I know it's because my e-mail field is only told to display when in focus but I wanna be able to make it stay visible when it's not. I don't know js yet so that's out of the question. Here's my codepen
2 Answers
Carman A
7,672 PointsI figured it out by adding
input + input:valid {
display: inline;
}
probably not the most semantic but hey it work's
Carman A
7,672 Points<p>adfadsf</p>
practicing markdown
Carman A
7,672 Pointsinput + input {
background: blue;
}