Forum Moderators: open

Message Too Old, No Replies

remove space around checkbox

remove space around checkbox

         

haluzator

8:46 am on Oct 2, 2006 (gmt 0)

10+ Year Member



please, help me with this problem

how remove space around checkbox? (in IE)

thank you for reply

penders

11:35 am on Oct 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Both FF and IE have a default left and right margin on the checkbox which gives the impression of some 'space', you can get rid of this with CSS:

<input class="nospace" type="checkbox" ...

CSS:

.nospace { 
margin-left:0;
margin-right:0;
}

Opera also has some 'space' around the checkbox, but it doesn't seem to have any left or right margins (or padding) ...? You can 'fudge' this by setting a width, but you could be getting into some cross-browser difficulties by playing with the width.