Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Table Troubles

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 12:30 AM
Original message
Table Troubles
I have one column of cells acting up on this site.

http://home.infionline.net/%7Earm3/wheatpasteindex.html

Only one thumbnail is acting up.

I have played around with it for a while but that first column wants to be wider than the ones to the right.

I am using NVU.
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
Xithras Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 01:59 PM
Response to Original message
1. I didn't notice a rendering problem in IE6
I did notice, looking at your code, that your application of styles is inconsistent. Some cells have widths applied, others don't. I can see where that could make it render differently in different browsers. If you want to fix the site, start with that.

Of course, my suggestion would be to use CSS and scrap the tables entirely. You could wrap all of your images in a single DIV tag, set a single margin on the img tag at the head of your file, and get the same look with a third of the code and none of the cellspacing hassles.
Printer Friendly | Permalink | Reply | Top
 
Xithras Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 02:26 PM
Response to Reply #1
2. Follow-up, example code
Here's a demo of what I'm talking about. In the head of your document, you would place this code:


<style type="text/css">
<!--
.imageholder { width: 768px; text-align: center; margin: 0 auto; }
img { margin: 15px 10px 15px 10px; }
-->
</style>


In the body, you'd do something like this:

<div class="imageholder">
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<Br>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
<a href="http://home.infionline.net/%7Earm3/images/ArrogantX4.gi f"><img border=0 alt="Arrogant.gif" src="http://home.infionline.net/%7Earm3/images/Arrogantx4tn.gi f"></a>
</div>

Basically just the image and link, no CSS required. In fact, the only positioning code required at ALL is the <BR> tag to tell the browser where to start the next row. No tables, no catches, and it should work equally well in all browsers. To adjust the spacing between the images, just play with the margin values for the IMG tag.
Printer Friendly | Permalink | Reply | Top
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 02:43 PM
Response to Reply #2
3. I have never worked with CSS before.
I guess I could start soon.

The problem I am having is that the tables will not be the same. The rendering is OK as is, but the left column is 170, the next 165, then 164,163. Going percentage didn't help.

I guess it is time to learn how to use CSS.

I guess it will be a weekend of tinkering.


Thanks
Printer Friendly | Permalink | Reply | Top
 
Xithras Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 04:30 PM
Response to Reply #3
4. That's why CSS is so useful
Rather than creating tables of a certain width, dropping your links in, and hoping that it renders right, CSS allows you to simply specify the exact distance you want between the images. It's a greater level of control.

As for tinkering, you shouldn't have to do much to the code I wrote to use it. You just need to paste in the header code as-is, and wrap your images in the DIV tags. No other CSS knowledge required :)
Printer Friendly | Permalink | Reply | Top
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 05:25 PM
Response to Reply #4
5. I have made a copy of my page to play with.
Edited on Fri Mar-11-05 05:59 PM by alfredo
I will give it a try.


OK, now I see it. I will transfer the links over to the new code.

Thanks.
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sat May 04th 2024, 04:49 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC