클릭관련 답변 좀 부탁드립니다

클릭관련 답변 좀 부탁드립니다

QA

클릭관련 답변 좀 부탁드립니다

본문

2ebb847498b24ccdfa4812f3f9222309_1477448409_3857.PNG

 로그아웃 마이페이지가 위에 흰박스에 들어가야하는데 왜 ㄴㅏ오게 되어있나요?

 

header { display:inline;padding:10px 0 10px;background-color:#191919;text-align:right;}
  
        header ul {
     
            font-family: sans-serif;
            font-size: 14px;
            line-height: 24px;
            padding: 8px 13px 7px;
            color: #4d5256;
            text-decoration:none;
            transition: color 0.7s;
   border-bottom: 1px solid gray;
            padding: 0px 0;
        }
 
        header li {
            display: inline;
            text-transform: uppercase;
            font-size: 13px;
            padding: 0 10px;
            letter-spacing: 4px;
        }

   .m02 {
        float:left;
            width: 100%;
         height: 30px;
         border:1px solid silver;
         box-sizing:border-box;
   background-color:white;
   text-align:center;
   }
  .m02 a{display:inline-block;
            width: 100%;
         height: 30px; 
   }
   .m03 {
         float:left;
            width: 50%;
         height: 30px;
         border:1px solid silver;
         box-sizing:border-box;
   background-color:white;
   text-align:center;
   }
   .m03 a{
         display:inline-block;
            width: 50%;
         height: 30px; 
   }
   .m04 {
         float:right;
            width: 50%;
         height: 30px;
         border:1px solid silver;
         box-sizing:border-box;
   background-color:white;
   text-align:center;
   }
    .m04 a{
         display:inline-block;
            width: 50%;
         height: 30px; 
   }

 

 

<header>

     <ul>
 
      <? if(!$member['mb_id']){?>
       <div class="m02">
   <li><a href="./board/bbs/login.php"/>Login</li>
  </div>
           <?}else{?>
        <div class="m03">
        <li><a href="/board/bbs/logout.php">Logout</a></i>
  </div>
     <? if(strstr($member['mb_id'],'admin')){?>
  
  <li><p><a href="/board/adm/">admin</a></p></li>
       
  
     <?}else{?>
          <div class="m04">
  <li><p><a href="Mypage

../board/bbs/board.php?bo_table=mypage">Mypage</a></p></i>
  </div>
     <?}?>
        <?}?>
     
    </ul>
  
  </header>

이 질문에 댓글 쓰기 :

답변 3

먼저 질문하신 내용보다는 분석할 자료가 좀 더 있군요.^^

다음과 같이 해보세요.

 

CSS 의  header ul { 내용생략 } 다음에 아래의 내용을 추가하세요.


header ul { 
    ~ 내용생략 ~
}
 
header ul:after{content:""; display:block; clear:both;} /* 이부분 추가 */

 

그리고,

<div class="m04">
  <li><p><a href="../board/bbs/board.php?bo_table=mypage">Mypage</a></p></i>
</div>

이 부분에서 아래처럼 <p> 태그를 제거하세요.


<div class="m04">
  <li><a href="../board/bbs/board.php?bo_table=mypage">Mypage</a></li>
</div>
 

 

다음으로,  <li>의 닫는 태그가 </i> 이렇게만 된 곳이 몇군데 있습니다.

기왕이면 이 부분도 </li> 이렇게 수정하세요.

ㅋㅋ 했는데 안되요 박스가 만들어지고 이상하게 나오네요 감사합니다^^


 header ul {
 
        }
  header ul:after{content:""; display:block; clear:both;}
        header li {

            display: inline;
            text-transform: uppercase;
            font-size: 13px;
            padding: 0 10px;
            letter-spacing: 4px;
        }

header li p{
           
            width: 50%;
        height: 30px;
        border:1px solid silver;
        box-sizing:border-box;
background-color:white;
            text-transform: uppercase;
            font-size: 13px;
            padding: 0 10px;
            letter-spacing: 4px;
        }

해당 사이트 주소를 알려주세요~

 

html 부분도 필요할거같습니다. 

답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT