473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

Sep 21 '07 #1
3 3100
Rob
MarkMc schreef:
Hi

I'm fairly new to CSS, so be gentle with me!
That's no fun
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.
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.
>
Regards,
Mark
Good luck

--
Rob
Sep 21 '07 #2
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.
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

Sep 21 '07 #3
MarkMc wrote:
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.
Sep 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dec | last post by:
Ok to simplify things I'll just give an example. This is pretty much what I want to do (minus the postcode): http://www.perrys.co.uk/usedcar?ID=F5J9BNNBMVK00DF I have relatively little...
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
2
by: gk | last post by:
i want to have 2 dpendent drown box. one for country , and the other for city. if you change country in box1 , the city list will also change in box2.. How to do it in javascript ? can...
6
by: John | last post by:
I have a drop down on my form and I need all the values in that drop down and pass to a stored procedure, how can I get the values of the drop down and pass them all to my stored procedure call?
8
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID,...
5
by: tsunet | last post by:
HI.. I wana display that, initially in a one drop down control there will be some values. Initially, 2nd drop down control will be disabled. if user selects 1st drop down then and then only value...
1
by: jacbyrd | last post by:
I have created a user control that is a drop down list that pulls from my database. I then drop that control into a detailsview control on an insert item template. When I run the insert command,...
6
by: zacks | last post by:
I have an application I am developing that has a Combo Box that is intended to show a list of available tables in the selected DSN. I have put code in the control's DropDown event handler to clear...
1
by: TC | last post by:
I'm confused about the proper way to shut down my application. I have a form which instantiates a control, which instantiates another control, which instantiates yet another control that runs a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.