akjfal

Material-ui makeStyle float해제 or content가 제대로 적용 안되는 현상 본문

react

Material-ui makeStyle float해제 or content가 제대로 적용 안되는 현상

akjfal 2021. 7. 28. 01:56

div의 float를 해제하려고 

  header: {
    "&::after": {
      display: "block",
      clear: "both",
      content: "",
    },
  },

위 코드를 작성했는데 정상적으로 작동하지 않았다.

해결방법은 content의 ""를 ''로 한번감싸주면 문제가 해결된다.

참고

https://stackoverflow.com/questions/53768260/css-pseudo-selectors-with-material-ui

Comments