inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

인스타그램 클론 - full stack 웹 개발

header

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

159

minje621

작성한 질문수 6

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%);    
}
이 코드인데 문제를 찾을 수 가 없어용..

django python HTML/CSS 클론코딩

답변 1

0

범쌤

안녕하세요 ^^ 

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

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

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

variableWidth.style.width 실행이 안되는것 같습니다.

0

304

0

알수없는 에러,,

0

210

0

postgresql: unrecognized service

0

291

0

AssertionError

0

214

0

\d 해도 작동이 안되고 에러가 납니다.

0

317

3

혹시 안내사항이 무슨 말인가요??

0

250

1

팔로잉 부분이 아예 작동이 안되네요. 분명히 똑같이 적은거 같은데 글자도 그림 뒤에 숨고 잘 작동이 안되요

0

283

3

전체 완성된 코딩소스는 어디잇나요?

0

191

2

4:10 쯤에 보이는 네모칸(빨, 주, 노, 초, ...) 치는 앱은 무엇인가요?

0

268

2

웹을 조금 해본사람이 들어야하나요 ?

1

212

1

제가 models.py의 Comment에서 post 변수를 안쓰고

0

230

0

여기까지 따라하고 runserver를 했더니 오류가 떠요

0

423

2

너무 저급한 질문 일 수도 있긴한데

0

173

0

화면이 오류가 안뜨는데

0

237

0

해결은 했지만 궁금합니다.

0

187

0

config폴더에 있는것과 accounts폴더에 있는 것들은 어떻게 다른건가요?

0

358

1

acoount 아래에 urls.py가 없는데 만들어야하나요?

0

191

1

링크가 안생겨요

0

203

1

상위폴더로 어떻게 이동하나요?

0

1112

1

psql이 안돼요

0

212

0

똑같이 했는데 오류가 뜹니다

0

289

1

6분 54초

0

180

0

저도 왜 좋아요가 안뜨는 걸까요?

1

541

6

top :50% 가 왜 가운데로 안가는건가요?

0

458

1