CSS 창 축소시 엘리먼트 자동 이동 증상

조회수 484회

 #foot{
            position: absolute;
           top: 300px;
            margin-left: 418px;
            padding-bottom: 200px;
            padding-right: 17px;
            margin-bottom: 50px;
        }

#######l{
            position: relative;
            margin-top: 40px;
            top: 10px;
           margin-left:   10px;
            text-decoration: none;
           font-weight: 350;
            color:  black;
            letter-spacing: -1px;
            font-size: 18px;

        }


         #m{
             position: relative;
            margin-top: 40px;
            top: 10px;

            text-decoration: none;
           font-weight: 350;
            color:  black;
            letter-spacing: -1px;
            font-size: 18px;

        }

 th{
            text-align: left;


        }

        td{
            position: relative;
          padding-left:   92.5px;
            height: inherit;

        }



@media(max-width:1100px){

      #foot{
position: absolute;
bottom: 0px;
top: 300px;
}
       #l{
         position: absolute;
margin-top: -30px;
left: -16px;

border-left: none;
                                           border-right: none;
                                        border-top: solid black 1px;
z-index: 1;
color: black;
text-decoration: none;

font-size: 18px;
padding-left: 20px;
padding-bottom: 15px;
padding-top: 15px;

padding-right: 630px;
text-align: justify;
width: 600px;




}
   #m{
         position: relative;
top: -20px;
z-index: 1;
color: black;
text-decoration: none;

font-size: 16px;

text-align: left;
width: 100px;

         }
}
<footer id="foot">    
<table> 
    <tr>
      <th> <a   id="l"> 텍스트 </a> </th>
        <td> <a id="m">20. 10. 20</a> </td>
        </tr>
</table> 

이것을 창을 줄이면 엘리먼트가 제멋대로 이동하는데, 이를 해결하는 방법이 궁금합니다.

  • https://codepen.io/yuptogun/pen/LYRedzY 이런식으로 데모를 올려주시면 도움이 됩니다. 근데 제가 그냥 올려봤는데 뭐 이건 창을 줄이는게 문제가 아니라 뭔가 전체적으로 이상한데요. 뭘 의도하신 것일까요? 엽토군 2020.12.29 12:26

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)