redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

image with the option tag


Goto page 1, 2  Next
 
Post new topic   Reply to topic    Programming Forums -> HTML forum
View previous topic :: View next topic  
Author Message
Ikopar
Enthusiastic Coder


Joined: 26 May 2006
Posts: 168
How can I use an image with the option tag

Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
what are you trying to do?
Reply with quote
 
Ikopar
Enthusiastic Coder


Joined: 26 May 2006
Posts: 168
When using the option tag i want to place an image beside the text value used for the option tag
<option value="">MY_IMAGE_HERE Text</option>
does that make no sense

Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
Easiest way to do it is to put a background-image and left-padding on the option element
Because the image probably isn't the defining part of the option

Reply with quote
 
Ikopar
Enthusiastic Coder


Joined: 26 May 2006
Posts: 168
how would I do that is there a link with an example
Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
how much do you know about CSS?
Reply with quote
 
Ikopar
Enthusiastic Coder


Joined: 26 May 2006
Posts: 168
I can figure it out if I see an example or source
So lil to some
What is the proper format for the following background-image: url(D:\Images\YOUR IMAGE HERE)

Reply with quote
 
Koplaf
Enthusiastic Coder


Joined: 28 May 2006
Posts: 130
Ikopar, use relative paths: /images/image.img
Reply with quote
 
Ikopar
Enthusiastic Coder


Joined: 26 May 2006
Posts: 168
What would be the relative path for the $path above
On what
The location of the root for what
Say my root is for the firefox application located at c:\program files\ firefox
How would I go about setting the location

Reply with quote
 
Koplaf
Enthusiastic Coder


Joined: 28 May 2006
Posts: 130
It depends: if your web is /home/webs/myweb and there is an images directory called images, then you should use: images/image.img to call any image in this directory
Reply with quote
 
Page 1 of 2 Goto page 1, 2  Next
Post new topic   Reply to topic    Programming Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group