[html/css] Layout 만들기(table태그), lorem ipsum

2024. 8. 4. 23:17·HTML|CSS
반응형

20240802수업

layout창을 만들땐 폴더를 따로 지정해주는 것이 좋다.

ㅣlayout만드는 방식
1.table tag
2.div float style
3.html5 header
4.css flexbox
5.css frid

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{box-sizing: border-box;}
    /* 블락엘리먼트 는 모바일로 가면 바껴서 표현될수 있음 장치에 반응하는 디자인>>반응형 웹디자인 
    테이블태그로는안되고 디브로 해야함*/
    a {text-decoration: underline; color: blue;}
    table{width: 100%;}

    #header{
      height: 150px;
      background-color: #666666; 
      color: white; 
      text-align: center; 
      font-size: 40px;
      font-weight: bold;}
      /* bold=700px */
    #nav{
      width: 20%;
      height: 300px;
      background-color: #CCCCCC;
      vertical-align: baseline;
      padding-top: 30px;
      padding-left: 15px;
      color: blue;
    }
    #section{
      width: 80%;
      height: 300px;
      vertical-align: baseline;
      padding-top: 30px;
      padding-left: 15px;
      padding-right: 15px;
      background-color: #F1F1F1;
    }
    #Footer{
      background: #777;  /*=축약표현 background: #777777*/
      color: white;
      text-align: center;
      height: 80px;
    }

  </style>
</head>
<body>
  <table>
   <tr>
    <td colspan="2" id="header">Cities</td>
   </tr>
   <tr>
    <td id="nav">
     <div><a href="layout1.html">Lodon</a></div>
     <div><a href="paris.html">Paris</a></div>
     <div><a href="seoul.html">Seoul</a></div>
    </td>
    <td id="section">
     <p style="font-weight: bold; font-size: 18px;">Lodon</p>
     <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
     <p>Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.</p>
    </td>
  </tr>
     <td colspan="2" id="Footer">Footer</td>
     <td></td>
  <tr>
  <td></td>
</tr>
</table>
</body>
</html>
위 html코드를 복사해서 같은 layout폴더 아래에 paris.html과 seoul.html파일을 생성에 코드를 붙여넣기 한다음 selection에 대해서만 내용을 수정해주면 된다.

See the Pen Untitled by 유레이나 (@zdixexqp-the-reactor) on CodePen.

Paris를 클릭했을때

 

Seoul을 클릭했을떄
이때 실무에서는 디자인이나 형식에 좀 더 집중하기위해 내용은 Lorem Ipsum으로 작성한다.
loream ipsum 생성 사이트:https://www.lipsum.com/
한글로렘입숨 생성 사이트 :  https://hanipsum.com/

Lorem Ipsum - All the facts - Lipsum generator

What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type spec

www.lipsum.com

 

한글입숨 생성기 - Hanipsum

hanipsum.com

 

반응형

'HTML|CSS' 카테고리의 다른 글

[html/css]웹사이트 제작하기  (0) 2024.08.06
[html/css]Flex box, Grid를 이용한 정렬  (0) 2024.08.06
[html/css] Selector(선택자) 총 정리  (0) 2024.08.04
[html/css]favicon 사용, map태그, area태그, 이미지 좌표 확인 방법, 다각형 링크  (0) 2024.08.04
[html/css]링크 버튼 만들기,vertical align  (0) 2024.08.03
'HTML|CSS' 카테고리의 다른 글
  • [html/css]웹사이트 제작하기
  • [html/css]Flex box, Grid를 이용한 정렬
  • [html/css] Selector(선택자) 총 정리
  • [html/css]favicon 사용, map태그, area태그, 이미지 좌표 확인 방법, 다각형 링크
라텐느
라텐느
이제 막 개발을 시작한 초보가 개인공부를 하는 공간입니다.
  • 라텐느
    괴발개발
    라텐느
    • 개발자 (154)
      • HTML|CSS (14)
      • JAVA (29)
      • JAVACSCRIPT (15)
      • SQL (16)
      • 기타 (5)
      • JSP (2)
      • SPRING (13)
      • SPRING BOOT (6)
      • Git&GitHub (1)
      • 시행착오 (2)
      • 개발일지 (35)
        • GreenMiniProject1 (12)
        • GreenMiniProject2 (9)
        • GreenFinalProject (14)
      • Flutter (5)
      • 자격증 (0)
        • SQLD (1)
      • AWS (2)
      • Linux (1)
      • 자료구조&알고리즘 (4)
  • 블로그 메뉴

    • 홈
    • 방명록
    • 태그
  • 링크

    • GitHub
  • 공지사항

  • 인기 글

  • 태그

    SQL
    태그
    링크
    HTML
    tag
    개발자
    javascript
    CSS
    부트캠프
    자기계발
    db
    JQuery
    AJAX
    JS
    일지
    link
    오블완
    input
    티스토리챌린지
    java
  • 최근 댓글

  • 최근 글

  • 반응형
  • hELLO· Designed By정상우.v4.10.0
라텐느
[html/css] Layout 만들기(table태그), lorem ipsum
상단으로

티스토리툴바