PDA

View Full Version : Borders and browsers


Banana-King
04-08-2003, 09:36 AM
I am making a website, it is XHTML 1 and CSS 2 compliant (last time I checked). Well, on Opera 7.03, the tables have no padding, borders, spacing, which is what I want. On IE 6, and mozilla 1.3, there is. Here is the CSS styles I am using. (gah, whers the code thing) (I know there is probably redundant codes here)
table {
margin: 0px;
padding: 0px;
border-width: 0px;
border-spacing: 0px
}
td {
margin: 0px;
padding: 0px;
border-width: 0px;
border-spacing: 0px
}

agent002
04-08-2003, 10:01 AM
It doesn't give any margins on my IE 6.

Banana-King
04-08-2003, 10:02 AM
http://www.adam.com.au/pickled/david/trans/main.html

Here is the site.

agent002
04-08-2003, 10:38 AM
I can't find any margins or stuff from that site, but however I guess your problems are those tiny spaces between table cells. Remove all unnecessary spaces from between <td> and </td> tags, maybe that'll help? If that was your problem?

Banana-King
04-08-2003, 11:08 AM
http://www.adam.com.au/pickled/david/screeny1.jpg
Opera 7.03
http://www.adam.com.au/pickled/david/screeny2.jpg
MSIE 6 SP1

One of those gaps was bigger, but I think spaces in the td tag caused that.

The source was formatted with http://cgi.w3.org/cgi-bin/tidy, with indents on. Without indents, it is the same, but there is more [:confused:] space between some of the menu images.

agent002
04-08-2003, 11:17 AM
So did you get it fixed?

Banana-King
04-08-2003, 12:02 PM
Nah, those are pictures of what it looks like now.

But, someone on another forum said I should be using div instead of tables, so forget this thread I guess. Unless I have problems with div.

agent002
04-08-2003, 12:16 PM
I can't see any reason why to skip tables... try changing "padding" to "border-padding", maybe that'll help?