• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

fake_field가 input안에 안들어가요..

19.10.19 15:48 작성 조회수 93

1

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset = "UTF-8"> 
        <title>Title</title>
        <link rel="stylesheet" href="css/reset.css">
        <link rel="stylesheet" href="css/style.css">
        <script src="js/main.js"></script>
    </head>
    <body>
        <section id = "container">

            <header id = "header">
                <section class = "inner">
                    <h1 class = "logo">
                        <a href="index.html">
                            <div class = "sprite_insta_icon"></div>
                            <div class = "sprite_write_logo"></div>
                        </a>
                    </h1>
                    
                    <div class="search_box">
                        <input type="text" placeholder="검색" id = "search-field">
                        <div class="fake_field">
                            <span class="sprite_small_search_icon"></span>
                            <span>검색</span>
                        </div>
                    </div>
                    <div class="right_icons">
                        <div class="sprite_camera_icon"></div>
                        <div class="sprite_compass_icon"></div>
                        <div class="sprite_heart_icon_outline"></div>
                        <div class="sprite_user_icon_outline"></div>
                    </div>
                </section>

            </header>

        </section>
    </body>
</html>
------------------------------
.sprite_insta_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -53px -235px;
    width22px;
    height22px;
}

.sprite_write_logo {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -94px -72px;
    width103px;
    height29px;
}

.sprite_compass_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -130px -286px;
    width23px;
    height23px;
}

.sprite_user_icon_outline {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -272px -182px;
    width22px;
    height24px;
}

.sprite_heart_icon_outline {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -52px -261px;
    width24px;
    height22px;
}

.sprite_small_search_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -337px -246px;
    width10px;
    height10px;
}

.sprite_more_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -301px -218px;
    width15px;
    height3px;
}

.sprite_bubble_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -239px -202px;
    width24px;
    height24px;
}

.sprite_share_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -324px -52px;
    width21px;
    height24px;
}

.sprite_bookmark_outline {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -237px -286px;
    width19px;
    height24px;
}
.sprite_bookmark_outline.on {
    backgroundurl('../imgs/background01.png'no-repeat -159px -286px;
    width19px;
    height24px;
}

.sprite_small_heart_icon_outline {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -323px -274px;
    width12px;
    height11px;
}

.sprite_camera_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -271px -104px;
    width24px;
    height22px;
}

.sprite_insta_big_logo {
    displayinline-block;
    backgroundurl('../imgs/background02.png'no-repeat -98px -150px;
    width175px;
    height51px;
}

.sprite_plus_icon {
    displayinline-block;
    backgroundurl('../imgs/background01.png'no-repeat -187px -202px;
    width23px;
    height23px;
}

body{
    background#fafafa;    
}

#header{
    width100%;
    positionabsolute;
    left:0;
    top:0;
    z-index999;
    backgroundwhite;
    border-bottom1px solid rgba(0,0,0,0.1);
}

#header .inner{
    width975px;
    height77px;
    marginauto;
    display:flex;
    justify-contentspace-between;
    align-itemscenter;
}

#header .inner .logo > a {
    colortransparent;
}

#header .inner .logo .sprite_insta_icon {
    positionrelative;
    margin-right30px;

}

#header .inner .logo .sprite_insta_icon:after{
    /* :을 찍으면 가상선택자 after는 그 후에 뭔가를 만들겠다. 콘텐츠를 받아야함.*/
    content'';
    width1px;
    height28px;
    background#000;
    positionabsolute;
    right : -15px;
    top : 0;
}

#header .inner .logo div{
    vertical-alignmiddle;
}

#header .search_box{
    positionrelative;
}

#search-field{
    width185px;
    height28px;
    background#fafafa;
    border1px solid #dbdbdb;
    border-radius3px;
    padding3px 30px;
    color#999;
    font-weight400;
    text-alignleft;
    font-size14px;
    outlinenone;
}

#header .search_box .fake_field{
    positionabsolute;
    left50%;
    top50%;
    transformtranslate(-50%,-50%);    
}
이 코드인데 문제를 찾을 수 가 없어용..

답변 1

답변을 작성해보세요.

0

안녕하세요 ^^ 

캡쳐해주신 화면으로는 문제가 없어보입니다~ 

자세한 확인을 위해 메일로 파일을 보내주시면 빠르게 확인하고 회신 드리도록 할게요 ^^~ 

kindtigerr@gmail.com 으로 보내주세요 ^&^