Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 21st, 2007, 10:45 AM
MarkMc
Guest
 
Posts: n/a
Default up/down control with CSS?

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

  #2  
Old September 21st, 2007, 11:15 AM
Rob
Guest
 
Posts: n/a
Default 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
  #3  
Old September 21st, 2007, 11:45 AM
MarkMc
Guest
 
Posts: n/a
Default 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

  #4  
Old September 21st, 2007, 12:05 PM
Harlan Messinger
Guest
 
Posts: n/a
Default 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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles