![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
Hi I'm fairly new to CSS, so be gentle with me! |
|
I'm trying to have an input box with a + and - image/button next to it (can you imagine what I want to do with these buttons? . |
|
I want to have the '+' button sitting directly above the '-' button. I've been trying to play around with in-line divs, floated etc, with no luck. Is this possible with CSS? I don't want to use a table unless all hope with CSS is lost. I'm developing on IE 6, but I want to target Firefox as well. |
|
Regards, Mark |
#3
| |||
| |||
|
|
I'm trying to have an input box with a + and - image/button next to it (can you imagine what I want to do with these buttons? .Actually: no. |

#4
| |||
| |||
|
|
Hi I'm fairly new to CSS, so be gentle with me! I'm trying to have an input box with a + and - image/button next to it (can you imagine what I want to do with these buttons? . I want tohave the '+' button sitting directly above the '-' button. I've been trying to play around with in-line divs, floated etc, with no luck. Is this possible with CSS? I don't want to use a table unless all hope with CSS is lost. You could just use a single image depicting both buttons, and use a |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
As an update for anybody else that's interested. I've found a way to achieve what I want using CSS/web standards. The problem I had with the image map is that it doesn't really cater very well for a user changing the font size on his/her browser |
|
and such like, i.e. it's a very static solution. Anyway, here's the basic solution I've come up with - obviously, the text "up" and "down" would be replaced with images. Have only tested it with IE 6 so far though... div.updown { display: inline; width: 1.25em; border: solid 1px black; } ... div A value: <input type="text" id="upDown1" value="123.4" /><div class="updown" id="d1"><div>up</div><div>dn</div></div /div Cheers, Mark |
![]() |
| Thread Tools | |
| Display Modes | |
| |