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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

border attributes of the checkbox element

Status
Not open for further replies.

byleth

Programmer
Feb 27, 2004
70
PT
Hi,

isn't it possible to alter the border attributes of a checkbox?

I've tried,

input.txt1
{
border: thin black solid
}

but it stays with the same aspect..


thanks
 
dont think this is possible, but you could throw it in the middle of a div and emulate a thick border...

__________________________________________________________
"The only difference between me and a mad man is that I'm not mad."
- Dali
 
Works for me:
Code:
<input type="checkbox" style="border:3px dashed #000000" checked>
 
your input.txt1 definition is incorrect.
use a class name instead.

Code:
<html>
<body>
<style>
.borderbox {
border:3px dotted #000000;
}
</style>
<form name="test" >

<input type="checkbox" class="borderbox" checked>
</form> 

</body>
</html>

grtfercho çB^]\..
"Imagination is more important than Knowledge"A. Einstein
 
well it doesn't work, although it works with text entries..

maybe it's because the browser, wich is Mozilla 1.4.1


 
Check you are not in Quirks mode... make sure you are using a !DOCTYPE on the page (always defined before you open the <html> tag).

You could always try making a simple HTML page up with no linked style sheets etc... and use this page (test page) to trial your border CSS out.

Try testing with other versions of Moz (Firefox 0.8 is a good lightweight release to test against). Let us know how you get on.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top