The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Blockquote Issue – Want a full width blockquote in Content Section

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #38228

    Here is my issue:

    I want a full-width blockquote in my content section, but the present blockquote is not touching the both sides of content-section (content section already got some padding).

    I tried giving -ve margin to blockquote and its not working Can you please do check this link and solve my issue ?

    Blockqoute is in the middle of the content and I don’t want to disturb the default padding value of content section…



    The only thing that I can imagine is making the background not go over the padding is that it may be some box-sizing or something.
    I’m not too sure. Try just doing this:

    blockquote {
    background: whiteSmoke;
    margin: 10px;
    margin-left: -10px;
    padding: 10px;
    width: [same width as content + 10px];
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.