4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Image spacing problems
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Ayyla
Junior WebHelper
Junior WebHelper


Joined: 02 Jul 2003
Posts: 10
Location: California

PostPosted: Wed Jul 02, 2003 6:48 pm (14 years, 3 months ago) Reply with QuoteBack to Top

I'm sure this has a simple solution, but it's just not coming to me. Sad 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?
OfflineView User's ProfileFind all posts by AyylaSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jul 02, 2003 7:38 pm (14 years, 3 months ago) Reply with QuoteBack to Top

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! Surprised Wink

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Ayyla
Junior WebHelper
Junior WebHelper


Joined: 02 Jul 2003
Posts: 10
Location: California

PostPosted: Wed Jul 02, 2003 7:58 pm (14 years, 3 months ago) Reply with QuoteBack to Top

that did work lol. thank you!


p.s. you mean the "" and '' ... yah I'll work on that Embarassed
OfflineView User's ProfileFind all posts by AyylaSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Jul 03, 2003 7:38 am (14 years, 3 months ago) Reply with QuoteBack to Top

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. Smile

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 Wink

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Ayyla
Junior WebHelper
Junior WebHelper


Joined: 02 Jul 2003
Posts: 10
Location: California

PostPosted: Thu Jul 03, 2003 10:15 pm (14 years, 3 months ago) Reply with QuoteBack to Top

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?
OfflineView User's ProfileFind all posts by AyylaSend Personal Message
SfCommand
Senior WebHelper
Senior WebHelper


Joined: 10 Nov 2002
Posts: 143
Location: UK

PostPosted: Thu Jul 03, 2003 10:17 pm (14 years, 3 months ago) Reply with QuoteBack to Top

All the tutorials can be found here => http://www.4webhelp.net/tutorials/
But for a direct link to Daniel's XHTML tutorial => http://www.4webhelp.net/tutorials/html/xhtml.php

________________________________
Miguel

http://community.34sp.com
http://www.miguel.me.uk | http://www.sfcommand.co.uk | http://www.ssdg.org.uk
OfflineView User's ProfileFind all posts by SfCommandSend Personal MessageVisit Poster's Website
Ayyla
Junior WebHelper
Junior WebHelper


Joined: 02 Jul 2003
Posts: 10
Location: California

PostPosted: Thu Jul 03, 2003 10:21 pm (14 years, 3 months ago) Reply with QuoteBack to Top

thank you starfleet Surprised
OfflineView User's ProfileFind all posts by AyylaSend Personal Message
Ayyla
Junior WebHelper
Junior WebHelper


Joined: 02 Jul 2003
Posts: 10
Location: California

PostPosted: Fri Jul 04, 2003 8:04 pm (14 years, 3 months ago) Reply with QuoteBack to Top

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 #?
OfflineView User's ProfileFind all posts by AyylaSend Personal Message
SfCommand
Senior WebHelper
Senior WebHelper


Joined: 10 Nov 2002
Posts: 143
Location: UK

PostPosted: Fri Jul 04, 2003 8:19 pm (14 years, 3 months ago) Reply with QuoteBack to Top

You can't put link= into a td tag. That isn't valid. In fact, iirc bgcolor is the only valid attribute in that td you posted.

________________________________
Miguel

http://community.34sp.com
http://www.miguel.me.uk | http://www.sfcommand.co.uk | http://www.ssdg.org.uk
OfflineView User's ProfileFind all posts by SfCommandSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat Jul 05, 2003 6:32 am (14 years, 3 months ago) Reply with QuoteBack to Top

Yes, link, vlink and alink are attributes for the <body> tag Wink.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Teddy
Junior WebHelper
Junior WebHelper


Joined: 30 May 2003
Posts: 21

PostPosted: Sat Sep 20, 2003 1:17 am (14 years, 1 month ago) Reply with QuoteBack to Top

And aren't those not in XHTML anymore, in favour of CSS?
OfflineView User's ProfileFind all posts by TeddySend Personal MessageSend emailVisit Poster's WebsiteAOL Instant MessengerMSN MessengerICQ Number
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat Sep 20, 2003 6:43 am (14 years, 1 month ago) Reply with QuoteBack to Top

I think you're advised to use CSS, but it's not invalid in XHTML yet. Question

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Teddy
Junior WebHelper
Junior WebHelper


Joined: 30 May 2003
Posts: 21

PostPosted: Sat Sep 20, 2003 2:45 pm (14 years, 1 month ago) Reply with QuoteBack to Top

Ahh.. Gotcha.

CSS is still much better anyways Very Happy
OfflineView User's ProfileFind all posts by TeddySend Personal MessageSend emailVisit Poster's WebsiteAOL Instant MessengerMSN MessengerICQ Number
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.055439 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme