HighDots Forums  

tables without spaces

alt.html alt.html


Discuss tables without spaces in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Faux_Pseudo
 
Posts: n/a

Default tables without spaces - 08-03-2005 , 12:28 AM







I am trying to create a table where the second row lines up with the
first withou any spacing between:

<table style="width: 100%; text-align: left;" border="0"
cellpadding="0"><tbody><tr><td cellpadding="0"
style="vertical-align: top;" colspan=2><tt><h3><pre>
(( //
( ) ( )</td></tr>
<tr><td valign=top cellpadding="0">
<h3><pre>||/<a href="foo.html">___/fauxascii.com/</a>_________|
Quote:
|/<a href="foo.html/">____/abcef/</a>________________|
|/<a href="bar.html">_____/abcdefgh/</a>____________|
`=___________________________='
</td></tr></tbody></table>

In elinks (my main browser) this works fine and we see:

(( //
( ) ( )
Quote:
|/___/fauxascii.com/_________|
|/____/abcef/________________|
|/_____/abcdefgh/____________|
`=___________________________='

But in firefox (and who knows what it looks like in IE) we see this:

(( //
( ) ( )


Quote:
|/___/fauxascii.com/_________|
|/____/abcef/________________|
|/_____/abcdefgh/____________|
`=___________________________='

Does anyone know of a way to get it to display like the first example?

--
.-')) fauxascii.com ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson


Reply With Quote
  #2  
Old   
Nik Coughin
 
Posts: n/a

Default Re: tables without spaces - 08-03-2005 , 12:43 AM






Faux_Pseudo wrote:
Quote:
I am trying to create a table where the second row lines up with the
first withou any spacing between:

(snip)

Firstly, your html is hideously malformed. Closing tags missing etc. This
is probably happening because you didn't close the first <pre> tag so it is
inserting line breaks from further in your code into your page (because it
thinks you still want to preserve white space as you haven't closed the tag
yet). You are getting different results in different browsers because they
each handle malformed code differently.

Secondly, why on Earth are you marking this up as a table? It's a strange
use of a table if you ask me, especially as you could have just done:

<pre>
(( //
( ) ( )
Quote:
|/<a href="foo.html">___fauxascii.com</a>_________|
/<a href="foo.html/">____abcef</a>________________|
/<a href="bar.html">_____abcdefgh</a>____________|
`=___________________________='
</pre>

Which works perfectly in Firefox, IE, etc.




Reply With Quote
  #3  
Old   
Faux_Pseudo
 
Posts: n/a

Default Re: tables without spaces - 08-03-2005 , 11:03 AM



_.-In alt.html, Nik Coughin wrote the following -._
Quote:
Firstly, your html is hideously malformed. Closing tags missing etc. This
is probably happening because you didn't close the first <pre
Testing shows that closing the first <pre> has no effect at all.

Quote:
Secondly, why on Earth are you marking this up as a table? It's a strange
use of a table if you ask me, especially as you could have just done:
Because I am creating an ascii-art layout for the pages that will look
something like this:

__________________________________________________ _____
/_________________________ ________________ ___________ )______
// ____ ____ )) )) //_______ )
// | __) | _ \ (( Ascii // // \\
// () | |__ | |_) | () \\ Photo (( Linux (( Site News\\
(( | __) | __/ )) Beer_Plants )) Porto \\ ))
\\ () | | ____ | | () // Mushrooms // Food )) //
)) |_| (____)|_| ((_____________// //________//
// )) ( :F_P: ( __________)
// // \__________)
(( ((
( ) ( )
Quote:
|/___/fauxascii.com/________|| Page body.
|/____/photo/_______________||
|/_____/cemetery/___________||
|/______across_from_elmwood/||
|/______elmwood/____________||
|/______new_york/___________||
|/______newtown-rd/_________||
`=___________________________='

Everything "Page body" will be more or less the same on each page.
Everything to the left of it will fluctuate based on the current
possition on the site. In the area of "Page body" will be the actual
content for the page.
The only way I can see to script this for automated updates is via a table.

<table><tr><td><pre>
.----------------.
Quote:
banner |
----------------|</pre></td></tr><tr><td><pre
links| body |
\_________!___insert a </pre></td><td><pre> there
| |
`----------------'</pre></td></tr></table

But for the banner to line up with the link there has to be no spacing.
Which, as mentioned, works find in a text browser but doesn't want to
work in Firefox.

--
.-')) fauxascii.com ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson


Reply With Quote
  #4  
Old   
dorayme
 
Posts: n/a

Default Re: tables without spaces - 08-03-2005 , 06:47 PM



Quote:
From: Faux_Pseudo <Faux.Pseudo (AT) gmail (DOT) com

__________________________________________________ _____
/_________________________ ________________ ___________ )______
// ____ ____ )) )) //_______ )
// | __) | _ \ (( Ascii // // \\
// () | |__ | |_) | () \\ Photo (( Linux (( Site News\\
(( | __) | __/ )) Beer_Plants )) Porto \\ ))
\\ () | | ____ | | () // Mushrooms // Food )) //
)) |_| (____)|_| ((_____________// //________//
// )) ( :F_P: ( __________)
// // \__________)
(( ((
( ) ( )
||/___/fauxascii.com/________|| Page body.
||/____/photo/_______________||
||/_____/cemetery/___________||
||/______across_from_elmwood/||
||/______elmwood/____________||
||/______new_york/___________||
||/______newtown-rd/_________||
`=___________________________='

.----------------.
| banner |
|----------------|</pre></td></tr><tr><td><pre
|links| body |
| \_________!___insert a </pre></td><td><pre> there
| | |
`----------------'</pre></td></tr></table


.-')) fauxascii.com ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson
You are a genius. Seriously! I admire anyone who can do this ascii art stuff
so well. I just want you to know this right now. Also an excellent
motivating factor for becoming an expert in tables! We will all come to you
with table questions after you have sorted this out...

dorayme



Reply With Quote
  #5  
Old   
Faux_Pseudo
 
Posts: n/a

Default Re: tables without spaces - 08-03-2005 , 08:26 PM



_.-In alt.html, dorayme wrote the following -._
Quote:
We will all come to you
with table questions after you have sorted this out...
If you or anyone else knows of a better way to accomplish what I want
to do then please let me know. Tables are what I know so that is what
I have been building this on.


--
.-')) fauxascii.com ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson


Reply With Quote
  #6  
Old   
Nik Coughin
 
Posts: n/a

Default Re: tables without spaces - 08-03-2005 , 09:38 PM



Faux_Pseudo wrote:
Quote:
_.-In alt.html, dorayme wrote the following -._
We will all come to you
with table questions after you have sorted this out...

If you or anyone else knows of a better way to accomplish what I want
to do then please let me know. Tables are what I know so that is what
I have been building this on.
I like what you are doing, I have a fondness for ascii. If I get some time
I will have a play and post back here with the results.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.