html >> Formatting text in a repeating table in my template

by DTruck_Guy » Sat, 28 Jan 2006 07:24:28 GMT

I am using a repeating table in my template for my home page. The table will
be used to add text based hyperlinks to news articles. By default, the rows of
content appear directly underneath eachother making it difficult to discern one
title from the next. I would like to simply put a space in between each table
row to seperate the titles. I have tried putting a <br> inside the code to be
repeated so the space will occur after each region but for some reason,
depending on where you put the <br> it either does nothing or puts all of the
breaks on top of the hyperlinks pushing them farther down the page. My current
code looks like this:

<!-- TemplateBeginRepeat name="newsArticles" -->
<tr>
<td valign="top"><span class="style8"><!-- TemplateBeginEditable
name="newsLink" -->Insert news links here. Click the "+" sign to add a new row
<!-- TemplateEndEditable --></span></td>
</tr>
<!-- TemplateEndRepeat -->

The output of this code looks like this

Link1
Link2
Link3

I need the output to look like:

Link1

Link2

Link3

I have tried using <br> in just about every conceivable place in the code to
accomplish what should just be a blank space below each link.

Any suggestions?



html >> Formatting text in a repeating table in my template

by rappelec » Tue, 31 Jan 2006 05:48:39 GMT


I think I understand what you are trying to do. I'll give a shot.
There are quite a few ways of accomplishing this. I guess it depends on
preference.
On way would be to experiment with table padding and spacing.
Other ways, using css, would be to add line height, or experimenting with
padding.
W3Schools is a pretty good site with some basic interactive tutorials. See
below.

Hope this helps. Let me know if you have any questions.

Robert

http://www.w3schools.com/html/default.asp
http://www.w3schools.com/css/default.asp




Similar Threads

1. Repeat same logo or table from page to page from a template

Frontpage has a feature where you can "insert page" when you want to use the same info more then once through a website (logo, table etc).  The advantage of this is you can change that "page" and it will update the info whereever it is located on your website and save a lot of time and potential mistakes.  Can it be done with Dreamweaver?



2. Repeating Table in Template -- Can't Edit It - Adobe Dreamweaver

3. Template - repeating in table

I am new and would like to know how to get to templates that will all me to set 
up an editable and non-editable area.  The non-editable area will be repeated 
on all pages of the website.  The editable are will be changeable on each page 
of the website. 

 Any information will be helpful.  I think if I knew what the proper 
terminology for this would be I could search for it, but right now I am not 
sure what it is called.

 Thanks.

4. Template Repeat Table Horizontaly - Adobe Dreamweaver

5. Template Repeating table

Hi,

 I'm working on creating a template file, and the page is going to be used by 
some authors who will just be entering some text in a table.   So i thought 
using the template>Repeating table option might be good to try.

 All went well until I noticed that after they enter a couple rows of text, and 
they want to sort the table.  If they go to Commands>Sort Table.   you get an 
error
 'Sort Table command cannot be applied to this table'..


 Is there no way to sort a table that uses the repeating table template option?



6. DW MX template - color changing table in repeat region

7. can't format text in Contribute: DW template

HI-

 I am admin/developer of a website that I designed using DW templates.  I am 
checking things out in COntribute before I unleash contribute to the content 
editors for the site.  As admin in Contribute, I gave myself permissions for 
everything.  I opened a page for editing, changed some text in an editable 
region, selected it, and tried to do simple formatting (such as BOLD).  
Everything was disabled except for css styles.  

 Is there something that I should be doing in DW to make sure that people can 
format text in editable regions?

 Thanks.

8. adding text format increases table cell height - Adobe Dreamweaver