How to Join Member's Area Private Library Search Today's Topics p Login
Main Forums Discussion Tech Talk Mature Content Archives
   Nav Win
 Tech Talk
 How Do You Spell HTML?
 UL in Tables
 1 2 3 4
Follow us on Facebook

 Moderated by: Ron   (Admins )

 
User Options
Format for Better Printing EMail to a Friend Not Available
Admin Print Send ECard
Passions in Poetry

UL in Tables

 Post A Reply Post New Topic   Go to the Next Oldest/Previous Topic Return to Topic Page Go to the Next Newest Topic 
WhtDove
Member Rara Avis
since 07-22-99
Posts 9561
Illinois


0 posted 02-23-2001 10:32 AM       View Profile for WhtDove   Email WhtDove   Edit/Delete Message      Find Poems   Click to visit WhtDove's Home Page   View IP for WhtDove

Ok, I'm really trying to think here, and I'm confusing myself. LOL (so what's new)

I'm trying to do an ul inside of tables.
For each <li> (which is on a seperate line),
do I have to do a <tr>? Each item would be a new row?

If I left out the table part on the li it wouldn't be included in the table right?

My brains are a bit muddy this morning, like thick coffee. LOL
Nicole
Senior Member
since 06-23-99
Posts 1896
Florida


1 posted 02-23-2001 02:24 PM       View Profile for Nicole   Email Nicole   Edit/Delete Message      Find Poems  View IP for Nicole



No, you do not have to make a new <TR> for each <LI>. Look at this quickie code I did up:

<TABLE>
<TR>
<TD>I like:<BR>
<UL>
<LI>My Kids</LI>
<LI>My Family</LI>
<LI>Gardening</LI>
<LI>The Beach</LI>
</UL>
</TD>
</TR>
</TABLE>

What that will create, essentially, is a box with a list in it. One Row, one Cell (the box), and by putting the <UL> inside the only <TD> in the table.

So, if you tried to make a <TR> for each <LI> what would happen is this:
<TABLE border="1">
<TR>
<TD>I like:<BR>
<UL>
<LI>My Kids</LI>
</TD>
</TR>
****Note - I'm going to stop right here and point out the flaw in doing it this way, a big HTML no-no. See how the <UL> tag was opened inside a <TD>? That <UL> tag *needs* to be closed within that <TD> for it to work properly. Now, if you were to open and close a bulleted list, and give each list one list item - per <TD> and <TR> - that would most likely look rather messy, and would DEFINITELY be a pain in the rear.

Best thing to do, would be to place the list inside one <TR>. You don't need (and really shouldn't) put them in more. Remember, tables are totally dynamic - they are within YOUR control. (provided the browser understands what you want it to do ) So, you can have one <TR> be extremely wide and long...if you want. See what I mean?

Hope this helps!

WhtDove
Member Rara Avis
since 07-22-99
Posts 9561
Illinois


2 posted 02-23-2001 08:55 PM       View Profile for WhtDove   Email WhtDove   Edit/Delete Message      Find Poems   Click to visit WhtDove's Home Page   View IP for WhtDove

<font face="Courier New, Arial, Verdana" color="#000080" size="2">Nicole, it worked!! Bless you for all your help.

I have a couple more problems.
I got the tables up..the rows to the left, the top one isn't spacing right. It was, but not now..The bottom was like the top, they kind of reversed themselves. How can I get the right spacing inbetween both of them?

Also you'll notice the headings Love & Fear,
one is down farther than the other.

It's like that on both sets. How can I fix this??

Here's the URL...
http://www.geocities.com/whtdove377/bibleref1.html </font>

[This message has been edited by WhtDove (edited 02-23-2001).]
Nicole
Senior Member
since 06-23-99
Posts 1896
Florida


3 posted 02-24-2001 02:30 AM       View Profile for Nicole   Email Nicole   Edit/Delete Message      Find Poems  View IP for Nicole

Okay - first I'll share this little, albeit REALLY helpful, trick I picked up when I started doing HTML...specifically, tables.

When something like this happens, go into all your <TABLE> tags and set a border to 1. That way, you can actually see how the cells and rows are laid out.

While the way you have your table set up, works just fine - one thing about the cells is that they're dynamic - they'll move to fit what you're putting in them. The "Fear" column looks longer, because it's designating the length of the cell - there's more text inside that cell.

If you put a border on the table, you'll see what I mean.

So, what might work better for you here, to line the two titles up horizontally would be to contain the first two titles, and the first two scriptures in one <TR> with two <TD>'s. Then start another <TR>, and so on. The top two will fall in beside each other, and the rest will line up below. One column will look a little longer at the end, but that's okay.

Let me know if that works!
WhtDove
Member Rara Avis
since 07-22-99
Posts 9561
Illinois


4 posted 02-24-2001 07:28 AM       View Profile for WhtDove   Email WhtDove   Edit/Delete Message      Find Poems   Click to visit WhtDove's Home Page   View IP for WhtDove

I have to laugh, you know I had already done a page in tables that way. DUH! LOL

I don't know why I couldn't think. Maybe it's because I spent over 12 hours working on this yesterday.

I'll work on it some more after class.
Thanks Nicole, I just couldn't think.

(sharon if you're reading this, you're right, and thank you, I was brain dead.)
WhtDove will be notified of replies
 Post A Reply Post New Topic   Go to the Next Oldest/Previous Topic Return to Topic Page Go to the Next Newest Topic 
All times are ET (US) Top
  User Options
>> Tech Talk >> How Do You Spell HTML? >> UL in Tables Format for Better Printing EMail to a Friend Not Available
Print Send ECard

 

pipTalk Home Page | Main Poetry Forums

How to Join | Member's Area / Help | Private Library | Search | Contact Us | Today's Topics | Login
Discussion | Tech Talk | Archives | Sanctuary



© Passions in Poetry and netpoets.com 1998-2013
All Poetry and Prose is copyrighted by the individual authors