homepage Welcome to WebmasterWorld Guest from 54.211.47.170
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Table problems
agerhart




msg:618640
 2:30 pm on Sep 27, 2001 (gmt 0)

I am having problems with making some changes to my site, here is the problem:

I am trying to change our main navigation from an image to text links. On the page there is an image at the top, and then there will be the text links underneath it. For some reason the table or the text links are causing a white space to appear in between the main image on top and the text links. We have defined all of the table cells correctly and all of that kind of stuff.......anyone have any ideas?

 

caine




msg:618641
 2:44 pm on Sep 27, 2001 (gmt 0)

agerhart,

A possible answer is that under the image, in the html, their is <p>&nsbc</p> or something along them lines, that is not denoting anything except for white space, i.e its useless. Other than that, is the Nav table - actually cells in a page table, that has exact sizes, as that would be a problem, a way round it is to restart the nav links, in their own table in the assigned coloum in the big table.

Maybe i'm being stupid ?

Are you using an editor, or doing it by hand ?

agerhart




msg:618642
 3:00 pm on Sep 27, 2001 (gmt 0)

Are you using an editor, or doing it by hand ?

A little of both.

I already checked for these: <p>&nsbc</p>

None of them present.

I can't figure it out:

<td colspan="2" height="106"><img src=images/blah.gif width=612 height=106 border=0 usemap=#Map2><map name=Map2><area shape=rect coords=98,25,502,58 href=http://www.blah.com></map></td>
<td rowspan="5"><a href=blah.htm><img src=http://www.blah.gif width=178 height=81 border=0></a><br>

tedster




msg:618643
 4:06 pm on Sep 27, 2001 (gmt 0)

Are cellpadding=0 and cellspacing=0? If so, are the text links (under the image) in a new table row, rather than just a using <br> tag after the top image?

If you're still stuck, you can sticky me with either the URL or the full code and I'd be glad to look at it. I've wrestled with this kind of thing a lot.

agerhart




msg:618644
 4:13 pm on Sep 27, 2001 (gmt 0)

Thanks for the help guys.

I fixed it.

Dreamweaver is a pain in the a** sometimes. It had put some extra code in after the image that was slipping by me. I got rid of it.

Thanks again

caine




msg:618645
 4:20 pm on Sep 27, 2001 (gmt 0)

Dreamweaver is funny like, even when it is a completely useless piece of code, you go to command > clean up html, and it just cleans up empty tabs.

It does make life easy though.

agerhart




msg:618646
 4:22 pm on Sep 27, 2001 (gmt 0)

Does that work Caine......the Clean Up command?

Is it effective?

caine




msg:618647
 4:35 pm on Sep 27, 2001 (gmt 0)

yes - it will delete empty tags, and combine font tags. Though preview in IE, NN and Opera, to make sure it hasn't broken any rules, before publishing.

IanKelley




msg:618648
 12:10 am on Oct 5, 2001 (gmt 0)

Heehee... I have to throw this in. There is one very simple fix for virtually all code problems when using WYSIWYG editors...

DON'T USE THEM!!

HTML is probably the worlds simplest language, learn it! :-)

You'll get cleaner code, better load times and quicker page rendering if you write the code yourself. WYSIWYG editors are for designing homepages not websites.

Er... IMHO ;-)

illusion




msg:618649
 7:17 am on Oct 9, 2001 (gmt 0)

Can't argue with that Ian.

HTML takes five minutes to learn the basics and after that the rest is just using fundamentals...

ALL WYSIWYG editors put unnecessary code...end tags and whatever else because they can't read your mind. Save yourself the trouble.

4eyes




msg:618650
 8:52 am on Oct 9, 2001 (gmt 0)

No doubt you are right

However, if I want to get a site up quickly with CSS positioned layers and a decent navigation system, Dreamweaver gets me there in half the time.

Sure, there are coders out there who can do it as quickly in HTML, but not many, For most people Dreamweaver is the most cost effective tool.

Dreamweaver is for business - HTML is for home pages run by coders, (No more of an incorrect generalisation than the original statement :) )

IanKelley




msg:618651
 9:30 am on Oct 9, 2001 (gmt 0)

I can put together a site far more quickly by hand than using a WYSIWYG editor because if I write the code myself I don't have to spend time cleaning it up.

If you're designing a professional website, you don't want to give your clients the mess that WYSIWYG editors produce.

On top of that, if you don't clean it up editing and updating is harder to do because WYSIWYG code is much harder to read and there's a lot more of it.

Getting a bit more in depth... What happens when you want to make your site XHTML or (insert the next W3C recommendation) compliant? What if you want to add features that your editor doesn't support? What if you client needs added functionality later such as server side scripting and database integration?

Add to that the fact that by using a WYSIWYG editor you've added extra download/rendering time and anyone who looks at your code can see that it wasn't professionally written....

I think I'm gonna stick with my original generalization ;-)

knighty




msg:618652
 1:52 pm on Oct 9, 2001 (gmt 0)

There is absolutley NO WAY hand coding is faster or cleaner than Dreamweaver in the right hands.

Example - 1 table 200 rows, 5 columns, alternating coloured rows

in DW about 2 seconds

by hand - ??? or copy paste a lot ;)

but then what if you want to merge a few cells? what happens if you change your mind later on?

An idiot will design a page that looks like it was designed by an idiot.
A professional will design a page that looks like it was designed by a professional.

If you consider yourself a professional designer then it should'nt matter what you use - any desinger worth his/her salt should know HTML by hand.

I could code all my pages by hand but it would add about 2 years onto the development time.

As for the insertiion of code by DW yes it does do that sometimes but you easily spot this type of thing and is extremely easy to correct.

I hate sloppy code and one of the things I love about DW is that you can save commands so that when it comes to cleaning up someone elses page or site you can strip font tags, remove cell widths and get rid of any tag with one mouse click :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved