/    Sign up×
Community /Pin to ProfileBookmark

Select (background) <style>

Hi

Have been trying to get the “select” to add a background image to it all day. Using the same method as inputs etc. but this style just isn’t taking to the select. Any suggestions?


—————-

Here’s the code:

<style>
select.image {
border-left: 1px solid #9FB6CD; border-right: 1px solid #9FB6CD; border-top: 1px solid #9FB6CD; border-bottom: 1px solid #9FB6CD;
font: 8pt Verdana;
background-image:url([url]http://www.borderprints.co.uk/logos/banner_7.gif[/url]);
}
select.image2 {
border-left: 1px solid #9FB6CD; border-right: 1px solid #9FB6CD; border-top: 1px solid #9FB6CD; border-bottom: 1px solid #9FB6CD;
font: 8pt Verdana;
background-image:url([url]http://www.borderprints.co.uk/logos/banner_7.gif[/url]);
}
</style>
<select name=”test” class=”image” onMouseOut=”this.className=’image'” onMouseOver=”this.className=’image2′”>
<option>select please</option>
<option>number one</option>
<option>number two</option>

</select>
—————-

For an example for what it’s supposed to do please go here:

[url]http://www.borderprints.co.uk/input.html[/url]

Any help would be greatfully received!

Cheers!

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@philawebMay 24.2004 — [B]jackson17[/B],

First thing I would check is whether "Ad Blocking" is enabled on my PC. Some PC internet security systems are able to block all ads by certain file names like "ad", "banner" etc.

Now, your images contain the word "banner" and are by default not shown on my PC. How about yours? And others?

Just a suggestion before you keep on pulling hair out of your head in frustration. ?
Copy linkTweet thisAlerts:
@smercerMay 25.2004 — Good suggestion philaweb, but this banner is not displaying on mine either. have sleipnir 1.41 on win xp
Copy linkTweet thisAlerts:
@FangMay 25.2004 — You can change the color and background-color, for the [I]select and option[/I] in IE, but not an image or border.

In Mozilla you can add an image and change the border to [I]option[/I].
×

Success!

Help @jackson17 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...