Jump to content

[SOLVED] Select Padding


tinker

Recommended Posts

Hi, I wrote some development code using class level css, this was applied to a html 'select' element. The 'padding' attribute was accepted fine. However when moving over to my site (presumably because of w3c tag) it is ignored. What should be used instead?

.select_img
{
background-repeat: no-repeat;
padding:3;
text-align:right;
}

 

P.S. I'm putting images in the background:

...
<option class='select_img' style='background-image:url(".$base."myimg.gif);'>The Choice</option>
...

Link to comment
Share on other sites

yip, 'height' does the job. I've also put this inline because it affects other things in the wrong way.

TheFilmGod: Because each entry has a different image (and one is even a different height to the rest, so this tailors it perfectly)

 

Thanks all!

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.