Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkbox CSS

Status
Not open for further replies.

iisman

Technical User
Mar 6, 2005
85
0
0
CA
Hello,

I know that OS and broswer type play a main part in determinning how a checkbox is rendered.

I am hoping that someone has an answer on how i can remove the "padding" that surrounds the actual box. looks to be about a few pixels on each side, top and bottom. I am looking for a solution that will work on both IE and FF/NS paltforms, but cna not find anything that works.

Thanks in advance for your help.
 
It might not be padding but a margin. Do something like this in the tag of the checkbox:
<input type="radio" style="margin:0px;padding:0px">
That should do it. If not try adding border:0px as well, which might sort it out

Hope that helps
 
You cannot get rid if it in some browsers. You can, however, give the checkbox a background colour, should this be a workaround for your problem (assuming your problem is that your have a break in your background colour - you don't say anywhere).

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top