SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Block quote and testimonial author

    I'm using the blockquote tag for testimonials, and want to use css to offset the testimonial author, so it looks better than here:
    http://clickbasics.com/cawse/our-services/

    I'd like the author to appear closer to the quotation and indented, and not so close to the next line, as in the line before #2.

    Suggestions?
    Paul C.
    ClickBasics
    http://www.clickbasics.com

  2. #2
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Something like this?
    Code:
    blockquote {
        margin: 24px 40px 0 40px;
    }
    blockquote p {
        margin-bottom: 5px;
    }
    blockquote + p {
        text-align: right;
        margin: 5px 0 24px 0 ;
    }
    Note: the line before 2 and the line of 2. itself are in the same paragraph <p>, with a line brek <br />.
    It should be separate <p>'s, like the line before 3 and the line of 3. itself.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •