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

how to create the dotted line in HTML 1

Status
Not open for further replies.

dafty

Programmer
Jul 21, 2001
40
TH
like a subject . i want to create table border like ->

.............................................................................

and i can't find the way to make it

help me.
 
hi use this:

<STYLE>
.tablestuff
{
border-color:RED;
border-width:1px;
border-style:dotted; //use dotted or solid or dashed
}
</STYLE>
<TABLE CLASS=&quot;tablestuff>

Hope this helps!
colorado.gif

¡Buena Suerte!
 
thank SPYDERIX.

thank u for help. i try in in netscape first and it work!! BUT IE don't show the dotted line. why ? who'll explain it?
 
I think the &quot;dotted&quot; attribute is IE 5.5+ only. Kevin
slanek@ssd.fsi.com

&quot;Life is what happens to you while you're busy making other plans.&quot;
- John Lennon
 
netscape 6 support more of the CSS2 properties.

I like the shorthand version of the CSS SPYDERIX showed you.

.addDots
{
border: 1px dotted red ;
}

Note : you can also use none, hidden, dotted, dashed, solid, double, groove, ridge, inset and outset. Gary Haran
 
The code I provided above works on IE-6 for me. I'm actually quite surprised to hear it works in Netscape. It's about time they start to do more with CSS. LOL
colorado.gif

¡Buena Suerte!
 
What does it support then? It seems that almost all javascript sites say compatible with IE only. What browser are the standards set to?
colorado.gif

¡Buena Suerte!
 
The standards are set by the w3c. Their web site is They are a third party that pretty much decides what the web will look like. XML, XSL, XHTML, HTML, etc.. is all standardized by them.

You can see there what version of HTML, CSS, ECMAScript (javascript) etc is the recommended version.

Netscape and Microsoft both are fighting to be the most standard compliant browser out there but MS still has lots of proprietary standards (meaning standards that they developped in-house). Gary Haran
 
thank u!!

my head is clear... i think the way to the next point is appear...

THE FORCE BE WITH U.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top