Forum Moderators: open

Message Too Old, No Replies

Table defaults?

         

dougie

10:57 am on Oct 12, 2004 (gmt 0)

10+ Year Member



When you make a table in some progs, you automatically get this:
<table border="0" cellspacing="0" style="border-collapse: collapse"
bordercolor="#111111" cellpadding="0">

Am I right in saying that if I just put <table> I would get exactly the same thing?

Lance

11:09 am on Oct 12, 2004 (gmt 0)

10+ Year Member



In a word, no.

Birdman

11:15 am on Oct 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Lance is correct. But the example you give is overkill. The border attribute is set to zero already, so there is no need for border-collapse and border-color.

<table border="0" cellspacing="0" cellpadding="0">

...should suffice.

Birdman

dougie

11:30 am on Oct 12, 2004 (gmt 0)

10+ Year Member



Lance is correct. But the example you give is overkill. The border attribute is set to zero already, so there is no need for border-collapse and border-color.
<table border="0" cellspacing="0" cellpadding="0">

...should suffice.

Cheers for that, one thing, if the border attribute is zero already, why would you need to put it in the tag?

dougie

11:31 am on Oct 12, 2004 (gmt 0)

10+ Year Member



Apologies for repeating the previous post.

Birdman

12:15 pm on Oct 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What I meant was, by having the "border=0" in there eliminates the need for the other two. Why don't you just test it different ways to see what happens?

Apologies for repeating the previous post.

No sweat, we quote people's posts all the time here.

Birdman

dougie

12:41 pm on Oct 12, 2004 (gmt 0)

10+ Year Member



What I meant was, by having the "border=0" in there eliminates the need for the other two. Why don't you just test it different ways to see what happens?

**It's usually quicker to ask in here ;-)

No sweat, we quote people's posts all the time here.

Birdman

** Yeah, I've seen loads here before, but the difference is that I didn't mean to ;-)