Does anybody know if a 1px css solid border is supposed to look (visually) the same as a border with value 1 or is it supposed to vary a bit from browser to browser?
DrDoc
7:44 pm on Nov 18, 2003 (gmt 0)
Border set by a border attribute will vary from browser to browser and element to element. Border set by CSS should, supposedly, look the same in all browsers, except for highlights and stuff...
pageoneresults
7:50 pm on Nov 18, 2003 (gmt 0)
If this is in reference to borders on tables, try adding...
border-collapse:collapse;
That will give you a true 1px border. I've been using .05em for sizing instead of 1px. It appears to be more reliable across the various browsers I test in.
DrDoc
7:54 pm on Nov 18, 2003 (gmt 0)
.05em
Unless, for some unlikely reason, they are using Mozilla and zoom a lot :)
I've never experienced any problems with 1px borders...
pageoneresults
8:00 pm on Nov 18, 2003 (gmt 0)
You're probably right DrDoc. Somewhere along the line in testing, I noticed some differences on borders and I could have sworn that the .05em vs. 1px produced a different border in one of the browsers, I thought it was Opera since that is my secondary testing browser.
DrDoc
8:03 pm on Nov 18, 2003 (gmt 0)
Was the border solid? I've only seen differences in highlighting...
scorpion
8:05 pm on Nov 18, 2003 (gmt 0)
I have a 1px solid border and use it in netscape 4.7 and it is always INVISIBLE.
I tried table class="frame" and even td class="frame" so I'm thinking to go to the trusted old border=1. Possibly I will also try tr="frame", nn 4.7 is so crappy for css I can't believe it :)
DrDoc
10:25 pm on Nov 18, 2003 (gmt 0)
Aah! Didn't realize we were talking NN4 :( Borders usually show up in NN4, even though tables are a bit quirky. How about ignoring the fact that there are no borders in NN4? That browser is so old anyway...
scorpion
11:48 pm on Nov 18, 2003 (gmt 0)
Usually you can ignore it but if you got a page that has like 3 columns with boxes, and there is no borders on the boxes it looks like a mess because there is no segregation.