Skip navigation
sbaisden12
Currently Being Moderated

Center text within table cell

Dec 27, 2012 7:12 PM

Tags: #table #align #center #align="center" #align-center #aligning_text #align_center

Hi-

I am trying to align text within the <dt> tag of a table.  The text also functions as a link.  I have set the CSS to:

 

.caption a {

          text-align:center;

          font-family:"Arial Unicode MS";

          font-size:18px;

          color:#FFF;

}

 

HTML code:

<td class="caption"><a href="#">Transportation</a></td>

 

Site:

http://www.sbaisden.com/portfolio.html

 

I have attempted several troubleshooting methods but nothing seems to work.  Any ideas are greatly appreciated.  Thanks!

 
Replies
  • Currently Being Moderated
    Dec 28, 2012 1:19 AM   in reply to sbaisden12

    Hello,

     

    using your source code in my (German) DW I tried this:

     

    1. "Select a Column" (translated from my German DW) > upper green arrow

     

    DWTab01.JPG

     

    2. "center" (little green arrow)

     

    Good luck!

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 28, 2012 12:21 PM   in reply to sbaisden12

    <td>

    <img src="some-image.jpg">

    <p class="caption"><a href="#">Transportation</a></p>

    </td>

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 29, 2012 7:52 AM   in reply to Nancy O.

    Hi,

     

    as css statement brilliant, of course. In this particular case (for an entire table) I would prefer my solution, as it DW offers.

     

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 1, 2013 5:33 AM   in reply to sbaisden12

    Hi Steve,

     

    and I guess after I have studied your web site, including the various projects there will always be more than one solution, you have to decide the type of design you would prefer, it's not always easy, ok?

     

    All the best for 2013!

    Hans-Günter

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points