Jump to content

DropDown Arrows


Tylor Eddy

Recommended Posts

G'day Guys,

I'm having a bit of trouble trying to style the dropdown arrows in my new form, i wanted to ask for some support from some of your guys who have managed to work this out.

Here is my new form, with the ugly arrows :wacko:

dropdown.jpg

Any support would be greatly appreciated because they are persistant little buggers and wont change to my custom image :lol:

Regards

Tylor

Link to comment
Share on other sites

Thanks for the reply itrobb,

I've been fiddling around with this, but it just wont co-operate: http://bavotasan.com...using-only-css/

What i cant get it to do is display the image, and also i cant get the field to stay my current rounded style, it wants to go square.

Tylor

EDIT: I've actually managed to remove it so there is no arrow at all, it looks ok so i may just stick with that :)

Thanks for your support mate, greatly appreciated.

  • Like 1
Link to comment
Share on other sites

If you want it rounded use border-radius however IIIRC this doesn't work in IE6. The again, nothing does. And for the images - have you definitely got the correct URL?

This should work:

<style>

.styled-select select {
  background: transparent;
  width: 268px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  height: 34px;
}

.styled-select {
  width: 240px;
  height: 34px;
  overflow: hidden;
  background: url([url="http://cdn.bavotasan.com/wp-content/uploads/2011/05/down_arrow_select.jpg"]http://cdn.bavotasan...rrow_select.jpg[/url]) no-repeat right #ddd;
}
</style>

<form>

<div class="styled-select">
<select>
[php for the options]
</select>
</div>

</form>

It's a good idea to save the image to your own directory instead.

  • Like 1
Link to comment
Share on other sites

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.

Loading...
×
×
  • Create New...