training-dreamweaver - tables text alignment
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » training-dreamweaver - Tables, Text alignment

training-dreamweaver - Tables, Text alignment

The UK's most regular instructor-led training courses.
Training information: training-dreamweaver · Dreamweaver training · Adobe dreamweaver training

resolvedResolved · Low Priority · Version Standard

Tables, Text alignment

Simon has attended:
Dreamweaver 8 Introduction course

by - delegate Simon [23 posts] (2007 Jul 19 Thu, 12:00) replyReply

I'm trying to edit an existing webpage and I'm having problems with text alignment. The page is in a table format, with people's names, job title & phone numbers in different cells. The text appears to be aligned properly while editing on Dreamweaver 8, but after uploading, the text is out of alignment. I'm very new to Dreamweaver and would appreciate your advice.
Thanks

Dreamweaver CS3 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
CS3 2008 Sep 22 Mon + 23 Tue Bloomsbury 6 book now £495 £495
CS3 2008 Oct 13 Mon + 14 Tue Bloomsbury 6 book now £495 £495
CS3 2008 Nov 4 Tue + 5 Wed Bloomsbury 8 book now £395 £415
CS3 2009 Jan 15 Thu + 16 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Feb 12 Thu + 13 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Mar 12 Thu + 13 Fri Bloomsbury 8 book now £395 £415
Full Schedule: See all 14 Dreamweaver CS3 course dates.
Bookings currently available until 12th November 2009.

RE: Tables, Text alignment

by - trainer Rich platinum contributer[713 posts] (2007 Jul 19 Thu, 17:05) replyReply

Hi Simon,

There are a number of ways to align text.

Firstly, in HTML, you can align a cell by applying the align parameter to the TD tag, like this:
<TD align="left">Content</TD>

To do this in design view of Dreamweaver, place the cursor in the cell, and check the Cell Alignment drop down box on the properties panel.

Secondly, you can align a section (P or DIV tag) by applying the align parameter to a DIV tag, like this:
<TD><DIV align="left">Content</DIV></TD>

To do this in Dreamweaver, it's also on the properties panel, but each alignment option is a button like you'd see on Microsoft Word. If you are in a Paragraph tag, it will attempt to align the paragraph, like this:
<TD><P align="left">Content</P></TD>

So also check your code to ensure there is no override of alignment of the TD tag.

Thirdly, you can set alignment in CSS definitions, and this could be done be redefining a HTML tag, like this:
CSS:
td { text-align: right; }
HTML:
<TD>Content</TD>

OR, as a class which is applied to the TD, DIV, P or other element, like this:
CSS:
.whatever { text-align: right; }
HTML:
<TD class="whatever">Content</TD>

Check all of these things, including your CSS definitions (either in an external linked .css file, and the top of your web page).

If this doesn't solve the problem, please reply with the URL of the page (if you're able to announce it publicly) and I'll have a look in more detail. Alternatively, you can e-mail the file to me, and if you need to do this, reply to this post and i'll supply you with the e-mail you can send it to.

See attachment graphic for difference in TD align and DIV align.

Regards, Rich

Attached files...

table_paragraph_cell_properties.gif

RE: Dreamweaver, Tables, Text alignment

by - delegate Simon [23 posts] (2007 Jul 20 Fri, 08:58) replyReply

Thanks for the useful advice - some of the alignment problems are also vertical rather than just horizontal - grateful for further advice?
Thanks

RE: Dreamweaver, Tables, Text alignment

by - trainer Rich platinum contributer[713 posts] (2007 Jul 23 Mon, 08:54) replyReply

Simon,

If it's alignment within a table cell, then you can use the 'vertical alignment' drop-down box as seen in the diagram attached to my previous post.

You can't really set vertical alignment to other elements such as P or DIV tags, as these are controlled by how much content comes before it. However, you can use CSS to control the exact layout of a page, to the exact pixel. eg. you can say 'this div tag must be 156 pixels down from the top of the page', and it will go there.

Hope this helps.
Rich


Related articles

· Macromedia Dreamweaver Vs Microsoft FrontPage
· Macromedia Dreamweaver: An Introduction
· Powerhouse Tips from Dreamweaver Training
· How Dreamweaver Courses for Your Marketing Staff Can Cut IT Payroll Expenses
· Which Is Best: Training Dreamweaver Personnel Or Contracting for Web Design?

Dreamweaver tip:

Viewing you page in the browser

If you are working in design view you can quicky preview your webpage by pressing the F12 key

View all Dreamweaver hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz