PDA

View Full Version : Is there a hack...


ByteWizard
11-28-2002, 03:37 PM
Is there a hack that I am not finding that will cause Netscape and Opera to properly interpret the border specs in this code snippit? Or did I screw it up?

div.letter {
width: 98%;
margin: 5px;
border : outset;
border : silver;
border : 3px;
padding: 5px;
background-color : #ffdebd;
font-family : Georgia, "Times New Roman", Times, serif;
font-size : 1em;
align-text: left;
margin : 2% 2% 2% 2%;
}

IE properly shows a 3px border in silver with outset style. Netscape and Opera show nothing.

DCElliott
11-28-2002, 04:16 PM
Border can be used alone if you use the shorthand method like David showed you, but if you are specifying properties individually you need to do this :
{...
border-width: 3px;
border-style: outset;
border-color: silver;
...}
IE is usually not as strict in parsing "bad" style.

Get Topstyle Lite - it'll keep you from making up properties. ;) and teach you a lot - it worked for me and I'm usually barely trainable.

Zero Angel
11-28-2002, 04:37 PM
Yeah, do what David said ;)

Regards,
~David

ByteWizard
11-29-2002, 03:26 AM
Thanks Guys....