473,320 Members | 1,600 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,320 software developers and data experts.

check box styles

Vic
Hi.

Is it possible to make web form's check box control (and/or an HTML check
box control) to have a thin fixed line for a box instead of a 3d box style.

I'd like the check box to look similar to a text box with BorderStyle
property set to 'Solid'. When I set BorderStyle to 'Solid' for a check box,
the whole control gets a border around it. All I want is a single line
border around the box that contains a check mark.

Thanks for any help.

VR
Nov 18 '05 #1
2 3354
I flipped through the HTML documentation, and didn't see a style property
you can set to get a 2d version of the checkbox. (That doesn't mean it
doesn't exist, just that I didn't find it.) If the visual is important, you
can make the style of the checkbox hidden, and then have an image that, in
onclick, sets the image to another image (with a check in it) and
simultaneously sets the value of the hidden checkbox so that, on post back,
you can just read the checkbox rather than checking the image properties.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Vic" <ro****@gat.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi.

Is it possible to make web form's check box control (and/or an HTML check
box control) to have a thin fixed line for a box instead of a 3d box style.
I'd like the check box to look similar to a text box with BorderStyle
property set to 'Solid'. When I set BorderStyle to 'Solid' for a check box, the whole control gets a border around it. All I want is a single line
border around the box that contains a check mark.

Thanks for any help.

VR

Nov 18 '05 #2
Vic
Chris,

Thanks for the post -- sounds like a great idea. I am not sure though, how
I can hide the check box's native image. You mention making "the style of
the checkbox hidden", how would I do it?

Thanks,
VR

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
I flipped through the HTML documentation, and didn't see a style property
you can set to get a 2d version of the checkbox. (That doesn't mean it
doesn't exist, just that I didn't find it.) If the visual is important, you can make the style of the checkbox hidden, and then have an image that, in
onclick, sets the image to another image (with a check in it) and
simultaneously sets the value of the hidden checkbox so that, on post back, you can just read the checkbox rather than checking the image properties.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Vic" <ro****@gat.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi.

Is it possible to make web form's check box control (and/or an HTML check box control) to have a thin fixed line for a box instead of a 3d box

style.

I'd like the check box to look similar to a text box with BorderStyle
property set to 'Solid'. When I set BorderStyle to 'Solid' for a check

box,
the whole control gets a border around it. All I want is a single line
border around the box that contains a check mark.

Thanks for any help.

VR


Nov 18 '05 #3

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

Similar topics

4
by: | last post by:
I would like to get people's views on the best way to implement verbosity (or any command-line option) into python scripts. The three styles I'm wrestling with are: def func(): #do stuff if...
0
by: Quinton | last post by:
I'm running a website that uses CSS to format the text and a CGI program Coranto that icludes news updates via SSI. My problem is that some parts of the CSS don't seem to take effect on the...
23
by: Mark Tranchant | last post by:
A new project: http://step-by-step.org.uk/ Don't worry about the links yet, the content hasn't been written. I'm just interested in the introduction screen, which is my first attempt at an...
12
by: dan.vendel | last post by:
Hi, I know nothing about javascript, but quite a lot about regulat html and CSS. Have bumped into a problem that people in this fine congregation perhaps can help me with. I'm making a...
3
by: JezB | last post by:
What's the generally accepted approach for using Styles and Stylesheets in a web application based on .aspx files, Web Controls, User Controls, and code-behind modules (c# in my case)? Most style...
7
by: sasquatch | last post by:
Hi, I've a a site with nested master pages and content pages. I tried using a theme with a stylesheet in the app_themes directory referencing it in the web.config file from a pages tag theme...
1
by: ericrosenfield | last post by:
Is there an easy way for JavaScript to check if CSS is active on a given browser? As in, I can turn CSS off with Firefox using View > Page Style > No Style -- if I've done that, is there any way...
3
by: spolsky | last post by:
hi, it is possible to apply multiple styles as shown in the following example. <STYLE TYPE="text/css"><!-- BODY { background-color:salmon; } P { margin-left:20px; } .clsCode {...
4
by: splounx | last post by:
Hi there, I am a relative CSS & JavaScript novice and I have a particular problem that is beyond my level of knowledge so I thought I'd tap the collective wisdom of this group. I would like...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.