Author |
Message |
Ayyla
Junior WebHelper
Joined: 02 Jul 2003
Posts: 10
Location: California
|
Posted:
Wed Jul 02, 2003 6:48 pm (20 years, 9 months ago) |
|
I'm sure this has a simple solution, but it's just not coming to me. I'm trying to stack 4 images vertically in a table and they have unwanted spaces inbetween them. Can anyone tell me what might be wrong with this code?
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<td valign="top" border=0 width=63>
<img src="right.jpg" BORDER=0>
<img src="home.jpg" BORDER=0>
</td>
</tr>
</table>
-- I tried putting in vspace and well as image height constraints, but that didn't help. Any ideas? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jul 02, 2003 7:38 pm (20 years, 9 months ago) |
|
Try putting them all on one line without any spaces:
Code: | <td valign="top" border=0 width=63><img src="right.jpg" BORDER=0><img src="home.jpg" BORDER=0></td> |
And clean up your HTML! |
________________________________
|
|
|
|
Ayyla
Junior WebHelper
Joined: 02 Jul 2003
Posts: 10
Location: California
|
Posted:
Wed Jul 02, 2003 7:58 pm (20 years, 9 months ago) |
|
that did work lol. thank you!
p.s. you mean the "" and '' ... yah I'll work on that |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Thu Jul 03, 2003 7:38 am (20 years, 9 months ago) |
|
Not only that: you should make it all XHTML compliant (see my tutorial for more info). In your case all you need is the double quotes ("), lowercase, and a / at the end of the img tag.
Just think about this: if you coded properly in the first place, you wouldn't have to rewrite your code, and you'd save time |
________________________________
|
|
|
|
Ayyla
Junior WebHelper
Joined: 02 Jul 2003
Posts: 10
Location: California
|
Posted:
Thu Jul 03, 2003 10:15 pm (20 years, 9 months ago) |
|
I see what you're saying now. I'm still learning my way around these forums, but I am interested in reading your tutorial. Could you link it please Daniel? |
|
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Thu Jul 03, 2003 10:17 pm (20 years, 9 months ago) |
|
|
|
|
Ayyla
Junior WebHelper
Joined: 02 Jul 2003
Posts: 10
Location: California
|
Posted:
Thu Jul 03, 2003 10:21 pm (20 years, 9 months ago) |
|
thank you starfleet |
|
|
|
|
Ayyla
Junior WebHelper
Joined: 02 Jul 2003
Posts: 10
Location: California
|
Posted:
Fri Jul 04, 2003 8:04 pm (20 years, 9 months ago) |
|
Okay, so I was trying to clean up my html a little bit and follow xhtml standards. I was wondering if someone could clear this up for me from when I put it in the validation check:
Line 113, column 29: there is no attribute "link" (explain...).
<td bgcolor="#ffffff" link="#25598E" alink="#25598E" vlink="#25598E">
Could someone tell me what is wrong with the link? Should there not be " "? Or no #? |
|
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Fri Jul 04, 2003 8:19 pm (20 years, 9 months ago) |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Jul 05, 2003 6:32 am (20 years, 9 months ago) |
|
Yes, link, vlink and alink are attributes for the <body> tag . |
________________________________
|
|
|
|
Teddy
Junior WebHelper
Joined: 30 May 2003
Posts: 21
|
Posted:
Sat Sep 20, 2003 1:17 am (20 years, 7 months ago) |
|
And aren't those not in XHTML anymore, in favour of CSS? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Sep 20, 2003 6:43 am (20 years, 7 months ago) |
|
I think you're advised to use CSS, but it's not invalid in XHTML yet. |
________________________________
|
|
|
|
Teddy
Junior WebHelper
Joined: 30 May 2003
Posts: 21
|
Posted:
Sat Sep 20, 2003 2:45 pm (20 years, 7 months ago) |
|
Ahh.. Gotcha.
CSS is still much better anyways |
|
|
|
|
|