1px tables (dreamweaver)
- Started
- Last post
- 13 Responses
- unknown
ya know how you create a table and you want the cells around the edges to be 1px wide, so you put a 1px wide blank image in there right?
that's what i've done, and I've hit the "clear table width/height" button, but they still aren't closing to 1px. i've also deleted the " "'s
any idea why i can't get them to shorten up?
- unknown0
when i said
"but they still aren't closing to 1px. i've also deleted the " "'s"in the blank quotes i meant 'nbsp;'
newstoday automatically takes that out if you put a '&' for some reason
- unknown0
nevermind figured it out
- Robo0
How did you do it Pilgram.. i have the same issues!
- unknown0
the problem was, with dreamweaver MX they want you to put that small 1px spacer in every single empty cell, not just the corners and what not.
get what i'm saying?
- Robo0
Do you do the same if the table height is say 5px?
- unknown0
i believe so...also dont forget to look at the code and take out all the nbsp's
- Robo0
But sometime i take them out and they are still there in the design view?!? It never did that in the earlier versions of Dreamweaver???
- 187LockDown0
You gotta put a spacer image in dude, or it will just keep putting nbps whatevers in your code.
Or if your smart about it you can create the tables in Fireworks, and then eliminate all the unecessary spacers when you import into DWMX, very tricky though and takes some practice.
- ilmarine0
one word : handcode.
learn the dos and don'ts of your html and you'll be just fine.
- sparker0
not only that, but use css...and you won't need that pesky 1px gif....
the web would be such a better place if everyone used css/xhtml instead of hacking togther sites with images and tables...
you don't build cars with rusted, old parts, why continue building websites with poorly written, bad code and archaic design?
...
- unknown0
"you don't build cars with rusted, old parts, why continue building websites with poorly written, bad code and archaic design? "
We do if we want the greatest amount of cross browser compatability. Sad but true.
- iodine740
The other way to do it... which isn't the best because of both the nested tables and because it isn't using css, but I'll offer it up anyways.... is this.
Declare a bgcolor on the table - use the color you want the border to be, set cellpadding=1 and cellspacing=0. Inside the cells of that table you'll have to declare more tables that have a bgcolor with the color you want inside your border.
EX:
Manager Forms
- iodine740
Grr.. it ate my html.. anyawys hopefully you got it from the description.
It works in old Netscape too.
But all the nested tables makes document structure more complicated, thus taking more memory and processing time for the browser to parse and render.... all that overhead for essentially just "style" as opposed to just using a stylesheet.