Skip navigation
Currently Being Moderated

Setting line colour to table

Aug 5, 2012 1:07 PM

Hi,

 

I need to specify a line colour to just one line in a table, this is the page: http://www.nick-lawrence.co.uk/testimonials.html I want to split the different testimonials up by a black line, there will be more as I add to them.

 

Any help greatly appreciated.

 

Thanks

 

 

 

Nick

 
Replies
  • Currently Being Moderated
    Aug 5, 2012 1:14 PM   in reply to NeoGen Hawk

    Change this -

     

    Paul and Mia</p></td>

          </tr>

          <tr>

     

    to this -

     

    Paul and Mia</p></td>

          </tr>

       <tr>

         <td colspan="2"><hr></td>

       </tr>

          <tr>

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 4:23 PM   in reply to MurraySummers

    Hi Murr -

     

    Could OP just put the <HR> at the end of the <td> without adding extra rows/cells?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 5:01 PM   in reply to Ken Binney

    Sure....

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 1:40 AM   in reply to NeoGen Hawk

    The images on the left -  do they relate to the quote - or are they just decorative?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 3:34 AM   in reply to NeoGen Hawk

    No Nick,

     

    put the <HR> at the end of the cell containing the signature

     

    <p class="testimonial"> <br>

            Paul and Mia</p> <HR> </td>

          </tr>

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 4:01 AM   in reply to Ken Binney

    Ken Binney wrote:

     

    No Nick,

     

    put the <HR> at the end of the cell containing the signature

     

    <p class="testimonial"> <br>

            Paul and Mia</p> <HR> </td>

          </tr>

    Hi Ken,

     

    I was questioning as to if the images on the left side some how related to the quotes on the right side.

     

    If you look at the set up each quote is in its own <td> cell so depending on the length of the quote there will be an unequal space after each quote. Inserting the <hr> after the last <p> tag may look a bit odd.

     

    IF the images on the left ARE NOT related to the text on the right then the quotes don't need to be in their own <td> cell so the <hr> after the end of each quote would work well.

     

    IF the images on the left DO related to the text on the right then it may be better to create the rule by adding a border to the top of the <h2> tag. This will then create a line adjacent to the end of the image on the left, which may look better presented.

     

    Just a thought.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 7:49 AM   in reply to osgood_

    Hi back Os...good hearing from you.

    As usual, all very good options.

     

    Nick,  please take note.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 8:23 AM   in reply to NeoGen Hawk

    NeoGen Hawk wrote:

     

    Or would it be better to do this: 'to create the rule by adding a border to the top of the <h2> tag' and if so how wopuld I do it?


     

    I'd say you're going to better off with a top border on the h2 tag:

     

     

    Use the below as the table html instead of what you have now:

     

     

    <table class="testimonial">

    <tr>

    <td><img src="http://www.nick-lawrence.co.uk/images/testimonials/mia-001.jpg" width="267" height="400" alt="mia"></td>

    <td class="testimonialText">

    <h2 style="border: none;">Paul &amp; Mia</h2>

    <p>Hi Nick<br>

    <br>

    The album is amazing. You have done a brilliant job with it and we are both so happy!!!  Thank you so much for all your help on the day and with the album.<br>

    <br>

    Regards<br>

    </p>

    <p><br>

    Paul and Mia</p></td>

    </tr>

    <tr>

    <td><img src="http://www.nick-lawrence.co.uk/images/testimonials/robina-001.jpg" width="267" height="400" alt="robina"></td>

    <td class="testimonialText">

    <h2>Richard &amp Robina</h2>

    <p>Dear Nick,<br>

    <br>

    Many thanks for a great day, within minutes of meeting you at our pre wedding shoot we knew that you would be able to create something unique and special. I hate my photo being taken but you made us feel so relaxed and at ease, your professionalism and imaginative photography created photographs that we didn't think would even be possible. The album is simply stunning, everything we could have wanted and more.<br>

    <br>

    Thanks again, we had the best day ever.<br>

    <br>

    Lots of love<br>

    <br>

    Robina and Rich xxx</p></td>

          </tr>

        </table>

     

     

     

    Then use this as the css instead of what you have now:

     

     

     

    .testimonial h2 {

        margin: 0;

        padding: 20px 0 20px 0;

        color:#000;

        border-top: 1px solid #000;

    }

    .testimonial p {

    color: #000;

    }

    .testimonialText {

        padding: 0 20px 0 20px;

        background-color: #FAFAFA;

        width: 100%;

    }

    .pic {

        width: 267px;

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 11:43 PM   in reply to NeoGen Hawk

    Hi Nick

     

    If you want the horizontal lines to go from edge to edge then use the css below:

     

    .testimonial td {

        vertical-align: top;

        padding: 0;

    }

    .testimonial h2 {

        margin: 0;

        padding: 20px 0 20px 20px;

        color:#000;

        border-top: 1px solid #000;

    }

    .testimonial p {

    color: #000;

    padding-left: 20px;

    }

    .testimonialText {

        padding: 0 20px 0 20px;

        background-color: #FAFAFA;

        width: 100%;

    }

    .pic {

        width: 267px;

    }

     
    |
    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