Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML Drop Down Help Needed

Featured Replies

Good evening, I need some help regarding a drop down html. I am a complete novice and have limited knowledge so please try to not use jargon when replying. Thank you!

 

I have this link drop down but when viewed the box is rather small and weedy looking so is there anything I can add/change to this to make it bigger or change the font size? If not where could I find another like this as all my searches have resulted in blanks? TIA

 

<!----- start drop down - links open in new window ----->

 

<form method="post" action="" name="">

<select name="select15" onChange="window.open(this.options[this.selectedIndex].value,'_top')">

<option selected>Select</option>

<option>---------------------------------------------------</option>

<option value="URL">Option 1 </option>

</select>

</form>

<!----- end drop down new window ----->

 

 

 

 

 

 

 

It is possible to fully style a select box.

 

Well that's not true entirely. But we can style a label that sits underneath a transparent select box and style that. You just need a few lines of JavaScript to get the value of the selected option and put it into the label. This is much more powerful than just using some kind of styled dropdown like Bootstrap does, this is because you will still get the native UI in smartphones that you get with a select box when it's opened.

 

I made a pen to demonstrate this, and I'll talk about it in a little more depth in my upcoming blog post. http://codepen.io/rbrtsmith/pen/azvywm

 

 

Another point of note: Do not use inline javascript. put it in an external file. you can bind events there like I do in my example.

Edited by rbrtsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.