• 23-08-2020, 18:19:26
    #1
    Herkese merhabalar, alt tarafta görseldekini yapmaya çalışıyorum ama yapamıyorum yardım edebilir misiniz?

    Görsel:

    Kod:
    <h1 style="border-bottom:1px solid #e1e1e1; height:10px; font-size:18px; font-weight:600; background-color:#ffffff; padding:0 100px; text-align: center;">ÇOK SATANLAR</h1>
    Kod çıktısı:
    "çok satanlar" yazısının arkasını bi türlü beyaz yapamadım. Sanırsam span falan açarak yapmam gerekiyor da tam beceremedim. Herkese şimdiden teşekkürler.
  • 23-08-2020, 18:21:17
    #2
    Hocam çok satanları span içine alın spanı'ın displayını inline-block verin arkada ki çizgi yi h1 de var sayıyorum span'a after veya before vererek after'a beyaz bir bg vermeniz lazım.
  • 23-08-2020, 18:23:24
    #3
    bg-color değil miydi
  • 23-08-2020, 18:23:54
    #4
    <div class="coksatan">ÇOK SATANLAR</div>
    .coksatan{
    display: flex;
    align-items: center;
    text-align: center;
    }
    .coksatan::before, .coksatan::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
    }
    .coksatan::before {
    margin-right: .25em;
    }
    .coksatan::after {
    margin-left: .25em;
    }
    buyur
  • 23-08-2020, 18:27:17
    #5
    <style>
    span {
    background-color: white;
    }
    </style>
    <h1 style="border-bottom:1px solid #e1e1e1; height:10px; font-size:18px; font-weight:600; padding:0 100px; text-align: center;"><span>ÇOK SATANLAR</span></h1>
  • 23-08-2020, 18:38:13
    #6
    <style>
    span {
    background-color: white;
    padding: 0 15px
    }
    </style>
    <h1 style="border-bottom:1px solid #e1e1e1; height:10px; font-size:18px; font-weight:600; padding:0 100px; text-align: center;"><span>ÇOK SATANLAR</span></h1>
    Dener miyiz
  • 23-08-2020, 19:00:38
    #7
  • 23-08-2020, 20:50:17
    #8
    Herkese teşekkür ederim