Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-06-2004, 07:24 PM   PM User | #1
dreamsonthefly
Regular Coder

 
Join Date: Nov 2003
Location: Seattle
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
dreamsonthefly is an unknown quantity at this point
Columns

I have a newsletter that I would like to make two columns in. The letter is written in JS and I can not for the life of me figure out the columns. any advise?

Thanks so much.

this is what I have so far, but I want the We Provide and You learn on the same line, with the text for each under the title.

<MULTICOL COLS=2 GUTTER=20 WIDTH 75%>
<U>WE PROVIDE</U>
<LI TYPE=disc> Accommodations
<LI TYPE=disc>Meals
<LI TYPE=disc>Rods
<LI TYPE=disc>Reels
<LI TYPE=disc>All Flies
<LI TYPE=disc>Lines
<LI TYPE=disc>Leaders
<LI TYPE=disc>Tippet
<LI TYPE=disc>Float Tubes
<LI TYPE=disc>Fins, Waders & boots
<LI TYPE=disc>Nets
<LI TYPE=disc>Professional instruction
<MULTICOL COLS=2 GUTTER=20 WIDTH 75% aling="right">

<UL><UL><UL><UL><U> YOU LEARN</u><U> YOU LEARN</u>
<LI TYPE=disc>Fly Casting
<LI TYPE=disc>Knots
<LI TYPE=disc>Entomology
<LI TYPE=disc>Fly Selection
<LI TYPE=disc>Fish Species
<LI TYPE=disc>Tackle Selection
<LI TYPE=disc>Catch & Release
<LI TYPE=disc>Streamside Ethics
<LI TYPE=disc>Wading Safety
<LI TYPE=disc>Fly Tying
<LI TYPE=disc>Float Tube Fishing</MULCOL>
__________________
Dreams on the Fly
http://www.dreamsonthefly.com
dreamsonthefly is offline   Reply With Quote
Old 02-06-2004, 08:19 PM   PM User | #2
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
Hi Rhonda;

Tables are good to use for tabular data.

Try this:
Code:
<table align="center" cellpadding="5" cellspacing="15" border="0">
  <tr id="headerRow_1">
   <th><U>WE PROVIDE</U></th>
   <th><U>YOU LEARN</U></th>
 </tr id="headerRow_1Close">
  <tr id="listRow_1">
   <td id="listLeft_1" valign="top">
    <MULTICOL COLS=2>
     <LI TYPE=disc> Accommodations</LI>
     <LI TYPE=disc>Meals</LI>
     <LI TYPE=disc>Rods</LI>
     <LI TYPE=disc>Reels</LI>
     <LI TYPE=disc>All Flies</LI>
     <LI TYPE=disc>Lines</LI>
     <LI TYPE=disc>Leaders</LI>
     <LI TYPE=disc>Tippet</LI>
     <LI TYPE=disc>Float Tubes</LI>
     <LI TYPE=disc>Fins, Waders & boots</LI>
     <LI TYPE=disc>Nets</LI>
     <LI TYPE=disc>Professional instruction</LI>
    </MULCOL>
  </td id="listLeft_1Close">
   <td id="listRight_1" valign="top">
    <MULTICOL COLS=2>
     <LI TYPE=disc>Fly Casting</LI>
     <LI TYPE=disc>Knots</LI>
     <LI TYPE=disc>Entomology</LI>
     <LI TYPE=disc>Fly Selection</LI>
     <LI TYPE=disc>Fish Species</LI>
     <LI TYPE=disc>Tackle Selection</LI>
     <LI TYPE=disc>Catch & Release</LI>
     <LI TYPE=disc>Streamside Ethics</LI>
     <LI TYPE=disc>Wading Safety</LI>
     <LI TYPE=disc>Fly Tying</LI>
     <LI TYPE=disc>Float Tube Fishing</LI>
    </MULCOL>
  </td id="listRight_1Close">
 </tr id="listRow_1Close">
</table>
.....Willy
Willy Duitt is offline   Reply With Quote
Old 02-06-2004, 09:02 PM   PM User | #3
Choopernickel
Regular Coder

 
Join Date: Apr 2003
Location: Atlanta, GA
Posts: 487
Thanks: 0
Thanked 0 Times in 0 Posts
Choopernickel is an unknown quantity at this point
Willy, I have to ask, what is this craziness:
Code:
</tr id="listRow_1Close">
That not only is completely invalid, it doesn't make any sense. There is a better way to mark associations of closing tags with opening tags, and should be taught, especially now that standards are starting to become the norm.

Code:
<tr id="listRow_1">
  <td>...</td>
</tr><!-- id="listRow_1" -->
Dreamsonthefly, the <!-- --> you see above are commenting marks - anything between them will be completely ignored by the browser. Some people use these to denote, for example, which row or table is closing with the current tag, just like above. It's entirely optional, but a very good practice, to comment your code. And please try to make your code both readable and meaningful: use an HTML reference book or website to guarantee that you're not breaking any of the rules of HTML.
Choopernickel is offline   Reply With Quote
Old 02-07-2004, 02:53 AM   PM User | #4
dreamsonthefly
Regular Coder

 
Join Date: Nov 2003
Location: Seattle
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
dreamsonthefly is an unknown quantity at this point
Ah Willy!!!

Will y Du it Again. Thanks!
__________________
Dreams on the Fly
http://www.dreamsonthefly.com
dreamsonthefly is offline   Reply With Quote
Old 02-07-2004, 03:25 AM   PM User | #5
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
Quote:
Originally posted by Choopernickel
Willy, I have to ask, what is this craziness:
</tr id="listRow_1Close">

That not only is completely invalid, it doesn't make any sense. There is a better way to mark associations of closing tags with opening tags, and should be taught, especially now that standards are starting to become the norm.
Choopernickel;

There is nothing invalid about what I did. Perhaps for this example, it was overkill, but I have been trying to teach Rhonda coding techniques which look towards the future standards.

FWIW: It is not invalid to apply an ID to any element. And although it may add to the overall document size (whitespace). The practice of assigning ID's will allow you to more easily go thru the DOM to make changes to a document without actually editing the content.

.....Willy

BTW: I do use descriptive ID's to aide in editing if I do need too.

Last edited by Willy Duitt; 02-07-2004 at 03:28 AM..
Willy Duitt is offline   Reply With Quote
Old 02-09-2004, 07:48 PM   PM User | #6
Choopernickel
Regular Coder

 
Join Date: Apr 2003
Location: Atlanta, GA
Posts: 487
Thanks: 0
Thanked 0 Times in 0 Posts
Choopernickel is an unknown quantity at this point
Willy, part of the problem is that a closing tag is not an element, and may contain no attributes, as evidenced in w3 Recommendations going back at least to HTML 4.01:
Quote:
3.2.2 Attributes

Elements may have associated properties, called attributes, which may have values (by default, or set by authors or scripts). Attribute/value pairs appear before the final ">" of an element's start tag. Any number of (legal) attribute value pairs, separated by spaces, may appear in an element's start tag. They may appear in any order.
Comments are valid anywhere in any SGML document, so long as they're not nested. Using comments after closing tags is just as readable as your manner -- with the added benefit of validity.
Choopernickel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 08:07 PM.


Advertisement
Log in to turn off these ads.