Connecting Tech Pros Worldwide Forums | Help | Site Map

up/down control with CSS?

MarkMc
Guest
 
Posts: n/a
#1: Sep 21 '07
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


Rob
Guest
 
Posts: n/a
#2: Sep 21 '07

re: up/down control with CSS?


MarkMc schreef:
Quote:
Hi
>
I'm fairly new to CSS, so be gentle with me!
That's no fun
Quote:
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.
Quote:
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.
Maybe you'd better not develop for a specific browser(s)
but use a doctype, stick to the standards
and only when it's absolutely necessary use the occasional hack.


Quote:
>
Regards,
Mark
>
Good luck

--
Rob
MarkMc
Guest
 
Posts: n/a
#3: Sep 21 '07

re: up/down control with CSS?


I'm trying to have an input box with a + and - image/button next to it
Quote:
Quote:
(can you imagine what I want to do with these buttons? :).
>
Actually: no.
I basically want to make a numeric "control" that will increment its
value when clicking the '+', and decrement when the '-' is clicked.

Web standards: absolutely I'll strive to do it with web standards, but
so far in my (limited) experience with CSS (read a few 'practical'
books and played a bit on my personal web site), you pretty quickly
have to get in to browser hacks. :(

Any suggestions on how to get the buttons sitting on top of each
other, next to the text input?

Cheers,
Mark

Harlan Messinger
Guest
 
Posts: n/a
#4: Sep 21 '07

re: up/down control with CSS?


MarkMc wrote:
Quote:
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.
>
You could just use a single image depicting both buttons, and use a
client-side image map that divides it into two regions. If you have more
than one of these buttons on the page, they can share the same MAP element.
Closed Thread