• 15-01-2019, 02:07:58
    #1
    Merhaba arkadaşlar, burda görselin üzerindeki arama kutusunu hem mobilde hem de masaüstünde sağa ve sola göre nasıl ortalayabilirim ?
  • 15-01-2019, 04:04:59
    #2
    Üyeliği durduruldu
    <div class="epsearch">
        <center>
     <div id="search-box">
    <form action="/search" id="search-form" method="get" target="_top">
    <input id="search-text" name="q" placeholder="Search Box" type="text">
    <button id="search-button" type="submit"><span>Search</span></button>
    </form>
    
    
    </div>
    
        </center>
       
    
    
    </div>
    <div id="search-box"> kısmının öncesine <center>, div bitimine de </center> ekleyerek ortalayabilirsiniz. Sitenizden aldığım kodu editleyerek cevaba ekledim. Direkt kullanabilirsiniz.
  • 15-01-2019, 04:30:37
    #3
    #search-box {
        position: relative;
        width: 60%;
        margin: 0 auto;
        margin-top: 20px;
    }
  • 15-01-2019, 10:23:26
    #4
    Fhm adlı üyeden alıntı: mesajı görüntüle
    Merhaba arkadaşlar, burda görselin üzerindeki arama kutusunu hem mobilde hem de masaüstünde sağa ve sola göre nasıl ortalayabilirim ?
    .epsearch {[LIST=1][*]    display: flex;[*]    justify-content: center;[/LIST]
    }
    eklerseniz. http://prntscr.com/m7c6p4
  • 15-01-2019, 14:52:30
    #5
    #search-box {    position: relative;    width: 60%;}
    Bu kodu

    Bununla değiştir.
    #search-box {   position: relative;  width: 60%;    overflow: hidden;     text-align: center;    margin: 0px auto;
    }
  • 15-01-2019, 16:51:23
    #6
    Maalesef hocam 2 kodu da ekledim değişen bir şey olmadı



    gsspor adlı üyeden alıntı: mesajı görüntüle
    .epsearch {[LIST=1][*]    display: flex;[*]    justify-content: center;[/LIST]
    }
    eklerseniz. http://prntscr.com/m7c6p4
    Maalesef hocam olmadı.
  • 16-01-2019, 12:43:00
    #7
    Sorun çözümüne kavuşmuştur.