| View previous topic :: View next topic |
| Author |
Message |
Ikopar
Joined: 26 May 2006 Posts: 168
|
| How can I use an image with the option tag |
| |
|
|
|
|
Lusis Backwood JR
Joined: 26 May 2006 Posts: 87 Location: United States
|
| what are you trying to do? |
| |
|
|
Ikopar
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 |
| |
|
|
Lusis Backwood JR
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 |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| how would I do that is there a link with an example |
| |
|
|
Lusis Backwood JR
Joined: 26 May 2006 Posts: 87 Location: United States
|
| how much do you know about CSS? |
| |
|
|
Ikopar
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) |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Ikopar, use relative paths: /images/image.img |
| |
|
|
Ikopar
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 |
| |
|
|
Koplaf
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 |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| Still confused a bit |
| |
|
|
|
|
|