# Style personnalisé pour \>Blockquote

**URL:** <https://meta.discourse.org/t/custom-styling-for-blockquote/103028>\
**Category:** Product Support\
**Created:** [Novembre 28, 2018, 9:43 UTC](https://meta.discourse.org/t/custom-styling-for-blockquote/103028 "2018-11-28T21:43:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [Décembre 2, 2018, 4:24 UTC](https://meta.discourse.org/t/custom-styling-for-blockquote/103028/4 "2018-12-02T04:24:05Z")

</div>

There’s a CSS rule in core that looks like this:

```plaintext
.cooked>*:first-child {
  margin-top: 0;
}

```

This is used to normalize the top margins of elements, since a set `15px` margin is added to the parent element, we remove all top margins from first-child elements.

This is a more specific rule so it strips the top margins you added to the blockquotes if they are the first child of `cooked`. So here’s something you can try and see if it works for you.

1. use position relative on the blockquotes
2. add the fix Martin suggested above
3. add this selector as well

```plaintext
.cooked>blockquote:first-child

```

So you end up with

```plaintext
.cooked>blockquote,
.cooked>blockquote:first-child {
  margin-top: 20px;
}

```

---

_[View the full topic](https://meta.discourse.org/t/custom-styling-for-blockquote/103028)._
