PDA

View Full Version : Table not displaying


K4GAP
05-09-2008, 01:20 PM
I'm adding a module to my site that is made up of a table... code below...

<table
style="width: 98%; text-align: left; margin-left: auto; margin-right: auto;"
border="0" cellpadding="5" cellspacing="5">
<tbody>
<tr>
<td style="text-align: left; vertical-align: top;">text</td>
<td style="text-align: center; width: 5%;"><img
src="http://www.tntspecops.com/images/usethis.jpg" border="0"></td>
<td style="vertical-align: top;">text</td>
</tr>
</tbody>
</table>

After creating the module this is what is shown on the site....

http://www.tntspecops.com/images/example.jpg


Can anyone tell me why it's not displaying correctly?

Lynne
05-09-2008, 02:23 PM
It looks to me like you have a line break after you start the table. You can't do that. Your table tag all has to be on one line.

K4GAP
05-09-2008, 03:55 PM
It looks to me like you have a line break after you start the table. You can't do that. Your table tag all has to be on one line.


It's obvious there is no line break. The code was generated by Dreamweaver 8 and pasted directly into code area. There may be the appearance of a line break in what was generated by vb after I clicked finish but, the input code has no line break.

Is there anyone here with coding experience that can guide me on this as I am new to vb?

Lynne
05-09-2008, 08:01 PM
It's obvious there is no line break. The code was generated by Dreamweaver 8 and pasted directly into code area. There may be the appearance of a line break in what was generated by vb after I clicked finish but, the input code has no line break.

Is there anyone here with coding experience that can guide me on this as I am new to vb?
Well, it may be obvious to *you* that there is no line break, but you posted the code with a line break above. If I hit Quote for your text, there IS A LINE BREAK. Now, maybe you put it there intentionally, but if you are asking for help with code, you should copy/paste *exacly* what you are using. Just like there is a space in the middle of your image tag. You would see these clearly if you used the <html> tags when posting here. But, what do I know.

K4GAP
05-09-2008, 09:19 PM
Lynne I really didn't mean to imply anything. I copied the code exactly as it was produced by Dreamweaver and pasted it both in the module and here to show the exact code used. Specifically where is the line break you speak of?

Lynne
05-09-2008, 09:36 PM
There is a line break right after <table and before
style="width: 98%; text-align: left; margin-left: auto; margin-right: auto;"and another right after <img and before
src="http://www.tntspecops.com/images/usethis.jpg" border="0">

K4GAP
05-10-2008, 08:13 PM
Lynne you were exactly right. Now I have to figure out why I paid all this money for Dreamweaver and it puts out crappy code. Well actually I didn't pay for it but thats besides the point :)

Thanks for putting up with me sorry about any misunderstanding. I'm really a nice guy. Now if I could just convince my wife of that I'd be doing pretty good :)

Again, thanks'
Gary