The Border attribute

They have: 222 posts

Joined: Sep 1999

How do I get a border that is smaller than 1 pixel? I've seen this done on www.SlashDot.org (On the left-hand side NavBar, the Sections area, it has a small gray border, maybe half a pixel...)

------------------
http://members.antionline.com/cst/

They have: 359 posts

Joined: Mar 1999

are you talking about the thin grey line that runs from top to bottom on the far left edge?

If so, any site that has a dark enough background to see it has it, including your own.

If that is not what you are talking about, give us some more specific details.

**edit

Never mind, I see what you are talking about. It probably isn't intentional. It's because the sections heading and the one under, andover.net heading title are in one table with a grey background and a cellpadding of 1 and the actual menu is in an imbedded table with a white background.

------------------
Dan
CDS Web Design

[This message has been edited by cds (edited 27 November 1999).]

[This message has been edited by cds (edited 27 November 1999).]

Dan
Recycle Video Games Network

Stupidity killed the cat, curiosity was framed!

They have: 222 posts

Joined: Sep 1999

I'm talking about the thin grey (gray?) line on the right side of that area... I think I've seen borders that thin elsewhere too. It might not be a border (that'd be the easiest way I think), it could be something more elaborate... Either way, if anyone knows how, please let me know.

Thanks,
ian

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Didn't check the page, but it's possible the webmaster used a 1 pixel table col and just set the background color to gray. I've seen several sites use this.

------------------
ArtsNFlies.com
Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!

They have: 222 posts

Joined: Sep 1999

Ok, I found a few more examples of it, although it doesn't look like a border anymore...Or at least it's not used as a border in these situations, although I still think it could be (ala Slashdot). (How's that for a run-on sentence?)
www.devshed.com www.32bit.com

both of those sites use a NavBar/content/2ndNavBar layout, and they have a thin gray line dividing the content area and the second navigation bar (the right-hand side one). I looked through the code but couldn't find it, so if anyone knows of a way to do this, I'd appreciate it.

------------------
-Ian
http://members.antionline.com/cst/

They have: 5,633 posts

Joined: Jan 1970

Read Jaiem's post.

------------------
http://go.to/hass

They have: 222 posts

Joined: Sep 1999

It needs to be thinner than 1 pixel, about a half a pixel, just like on those examples... They seem to be using the exact same thing...

------------------
Ian
http://members.antionline.com/cst/

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

Are you sure it's less then a pixel? If your positive have you tried height="0.5"?

------------------
FireBurn Web Publishing: http://www.fireburn.com

They have: 5,633 posts

Joined: Jan 1970

Both the site are written by the same people - theye bot copyrighted to ngenuity.com - you could try e-mailing the webmaster and asking them how they do it.

They have: 5,633 posts

Joined: Jan 1970

Hi again

After looking through the source code from 32bit.com I found the table cell which codes for the thin line:

<td width=1 bgcolor=#cccc99><img height=1 width=1 src=http://www.32bit.com:8000/pixel.gif></td>

It is actually a 1 pixel cell with a 1x1 pixel white image in it. - but that doesn't really answer your question.

They have: 5,633 posts

Joined: Jan 1970

If you wanted a thinner line maybe you could use a JPEG image set at a higher resolution than 72dpi

------------------
http://go.to/hass

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.