Jump to content

Scroll bar HTML


darkshad0w

Recommended Posts

Hi all,

 

My problem is i have created a table with a scroll bar and I am trying get it so it can select the items inside right now you can only take the cursor and highlight the names.

 

I want to be able to actually click on the name to have it selected kind of like when you upload a file you can click it....and select other files and it highlights it blue sort of thing...

 

<td><div style="overflow:auto; height:300px;width:90px;">

joey

        Bob

        evan

</div>

 

thanks

Link to comment
Share on other sites

isn't this what you want? if not provide some more code (rightclick view source copy paste or link to an online example)

 

<select name="gorilla" size="5" multiple="multiple">
    <option>bla</option>
    <option>bla</option>
    <option>bla</option>
    <option>bla</option>
    <option>bla</option>
</select>

Link to comment
Share on other sites

well

in:

<select name="gorilla" size="5" multiple="multiple">

name="gorilla" gives it a name of gorilla :birthday:

size="5"  tells how many options are shown (so if you have 10 options, but size is 5 its shows only 5 and you need to scroll for the rest)

multiple="multiple" tells you can select multiple items, if you remove that part you can only select 1

 

 

There are some other attributes you can add, but i recommend to check the manual for that or use a lovely search engine like google.

If you have code that needs a review or having problems with code, we can help

 

run this and it should be clear

<select name="gorilla" size="5" multiple="multiple">
    <option>bla</option>
    <option>bla</option>
    <option>bla</option>
    <option>bla</option>
    <option>bla</option>
    <option>moo</option>
    <option>moo</option>
    <option>bla</option>
    <option>moo</option>
    <option>moo</option>
    <option>bla</option>
    <option>moo</option>
    <option>moo</option>
    <option>bla</option>
    <option>moo</option>
    <option>moo</option>
</select>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.