Blockquote

  • Author
    Posts
  • #927825

    Hi all, I would like for the second line of what is blockquoted to be indented. In the link below I indicated with an arrow what I mean. I would like “really” to be right under “Don’t”, “etc.” to be under “Let’s”, “you’re” to be under “I”, and “changes” to be under “Have.” Is it possible?

    Thanks in advance!

    The blog I need help with is notchangingmyname.com.

    #928008

    This depends on the HTML inside the blockquote. If each exchange within the blockquote is a separate paragraph, then you can do what you’re asking with CSS like this:

    blockquote p {
    	margin-left: 1em;
    	text-indent: -1em;
    }
    #928041

    Thank you! Along those lines, is there code so that would be no space between the paragraphs, so that it would look like the text in the image linked above? I usually hit Shift + Enter so there is no space, but that won’t work if I use the code above.

    #928042

    Certainly. Update to:

    blockquote p {
    	margin-left: 1em;
    	text-indent: -1em;
    	margin-bottom: 0 !important;
    }

    Also, note that you can adjust the 1em values if you want a bigger hanging indent.

    #928060

    thank you!

The topic ‘Blockquote’ is closed to new replies.