Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Creating 1 pixel cell borders.

But Dreamweaver won't let me make cell widths less than four?



4:42 am on Feb 25, 2006 (gmt 0)

5+ Year Member

I'm trying to use the 1 pixel width color filled cell trick to create thin borders around my tables. I know this is a standard practice but I've had a very frustrating time trying to figure this out all day.

I couldn't find any specific tutorials anywhere and I did manage to get some code from a website that has already accomplished what I'm trying to do, but as soon as I make any small change to the table layout the borders shift and thicken by a few pixels.

I need to learn how to do this. This has become very personal, and it doesn't help that I could accomplish what I want to do in flash in about 30 seconds, but for the life of me I can't make it work in dreamweaver. And I NEED to make it work in dreamweaver.

I need to learn how to do this. I know I am definitely missing something somewhere. I've tried spacer gifs... I've tried nesting thirty something tables into each other... All attempts up to this point have been fruitless.

No matter what I do dreamweaver will not let me create a cell less than 4 pixels wide. Even if I edit the code manually they will still remain 4 pixels wide.

If someone out there can post some code that I can learn from I would really appreciate it!




12:46 pm on Feb 25, 2006 (gmt 0)

10+ Year Member

It's more standard practice to use css to create your thin borders.

In your html:

<table class="tablewithborder">

In your css file:

table.tablewithborder {
border: 1px solid #000000;


4:20 am on Mar 9, 2006 (gmt 0)

5+ Year Member

Yes, CSS was definitely the way to go. I can't believe I beat myself up for days over something so basic.




Featured Threads

Hot Threads This Week

Hot Threads This Month