Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
154 views
in Technique[技术] by (71.8m points)

css - What reasons would text not appear on a page as a heading for radio buttons?

I am writing in HTML and my title for a radio buttons section on my page isn't appearing. Also I can't seem to organize the radio buttons vertically, nor am I able to get my spacing right with a section above my radio button section. Here is a link to my Codepen where I am writing my code,

https://codepen.io/DevinCassidy/pen/xeZpxx

<div>
 <br>
 <h2 for="radio-buttons"> What type of Deejaying do you prefer?</h2>
</div>
<div>
<input type="radio" id="analog deejaying" name="drone" value="analog deejaying">
<label for="analog deejaying">Analog Deejaying</label>
</div>

<div>
<input type="radio" id="digital deejaying" name="drone" value="digital deejaying">
<label for="digital deejaying">Digital Deejaying</label>
</div>

\\\

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You forget to close select tag, thats occurs errors. Also i recommend you set one unique Id to html tags. Because its can cause to bad consequences.

<select id="dropdown" name="" class="dropdown">
          <option disabled value>Select an option</option>
          <option value="Turntables">Turntables</option>
          <option value="CDJ's">CDJ's</option>
          <option value="Controller">Controller</option>
          <option value="Any music playing device">Any music playing device</option>
</select>

https://codepen.io/anon/pen/jRMzrE


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...