code_highlighter 질문

Extra Form
PHP PHP 7.4
CMS Rhymix 2.0

code-highlighter 을 적용하였는데 라인이 한줄씩 넘어갑니다. 미리보기로 보는 코드는 정상으로 보입니다.

css 를 보면 모두 !important 가 적용되어 있어 board 나 layout 의 커스텀한 css 와는 관련이 없을것 같구요.

 

어느부분이 문제일까요?

202207181658126767.png

미리보기 화면 입니다.

 

202207181658126791.png

본문 또는 댓글에 표시되는 코드입니다.

 

.syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea {
    -moz-border-radius: 0 0 0 0!important;
    -webkit-border-radius: 0 0 0 0!important;
    background: none!important;
    border: 0!important;
    bottom: auto!important;
    float: none!important;
    height: auto!important;
    left: auto!important;
    line-height: 15px!important;
    margin: 0!important;
    outline: 0!important;
    overflow: visible!important;
    padding: 0!important;
    position: static!important;
    right: auto!important;
    text-align: left!important;
    top: -10px!important;
    vertical-align: baseline!important;
    width: auto!important;
    box-sizing: content-box!important;
    font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace!important;
    font-weight: normal!important;
    font-style: normal!important;
    font-size: 10pt!important;
    min-height: inherit!important;
    min-height: auto!important;
}

 

임시로 18번 라인의 top 을 -10px 정도 주어 임시방편으로 해결했으나 이것이 근본적인 해결책이 아닌것 같아 여쭤봅니다.

 

감사합니다.

 

  • profile

    XE타운 코드 하이라이터 보시면 해당 CSS가 없어도 정상 출력되고 있죠? 코드 하이라이터 CSS를 건드리실게 아니라 레이아웃이나 게시판 CSS 중 충돌하는것이 없는지 체크하시는게 좋을것 같습니다. 해당 클래스가 아닌 주변 클래스의 문제일수도 있는것이니까요.

    물론 제일 좋은건 확인 가능한 주소를 적어주시는겁니다.