'웹표준'에 해당되는 글 5건

  1. 2009.11.02 css table 만들기 3
  2. 2009.11.02 css table 만들기 2
  3. 2009.07.18 웹퍼블리셔, css, 웹표준, html 서적 정보
  4. 2009.07.15 css 초기화
  5. 2009.07.14 alt와 title의 차이점 3
프로그램/html,css2009. 11. 2. 22:01




[table3.html]
<html>
<head>
<link rel="stylesheet" type="text/css" href="table3.css" />
</head>

<body>

<table class="boardList">
<tr>
 <th class="number">번호</th>
 <th class="title">제목</th>
 <th class="writer">작성자</th>
 <th class="date">작성일</th>
 <th class="viewCnt">조회수</th>
</tr>
<tr>
 <td>1</td>
 <td>제목</td>
 <td>작성자</td>
 <td>작성일</td>
 <td>조회수</td>
</tr>
<tr>
 <td>2</td>
 <td>제목</td>
 <td>작성자</td>
 <td>작성일</td>
 <td>조회수</td>
</tr>
<tr>
 <td>3</td>
 <td>제목</td>
 <td>작성자</td>
 <td>작성일</td>
 <td>조회수</td>
</tr>
</table>
</body>
</html>



[table3.css]
.boardList
{
 width:100%;
 border-top: 1px solid #666;
 border-left: 1px solid #666;
 text-align:center;
 border-collapse:collapse;
}

.boardList th, td
{
 padding:10px;
 border-right: 1px solid #666;
 border-bottom: 1px solid #666;
}

.boardList th.number {width: 53px;}
.boardList th.title {width: *;}
.boardList th.writer {width: 70px;}
.boardList th.date {width: 90px;}
.boardList th.viewCnt {width: 60px;}


[설명]
아래는 가느다란 실선 테이블을 만들기에서의 핵심이다.

1. 테이블의 맨 윗쪽선과 왼쪽선을 만드는 부분
.boardList
{
 border-top: 1px solid #666;
 border-left: 1px solid #666;
}

2. th, td의 오른쪽과 아래쪽 선을 만드는 부분
.boardList th, td
{
 border-right: 1px solid #666;
 border-bottom: 1px solid #666;
}

3. 1, 2번만 하면 선 사이의 간격(th, td)이 벌어져 있어서
간격을 붙여줘야 한다.
border-collapse:collapse;

Posted by 은둔고수
프로그램/html,css2009. 11. 2. 21:46



[table2.htm]
<html>
<head>
<link rel="stylesheet" type="text/css" href="table2.css" />
</head>

<body>

<table class="boardList">
<tr>
 <th class="number">번호</th>
 <th class="title">제목</th>
 <th class="writer">작성자</th>
 <th class="date">작성일</th>
 <th class="viewCnt">조회</th>
</tr>
<tr>
 <td>1</td>
 <td>제목</td>
 <td>작성자</td>
 <td>작성일</td>
 <td>조회수</td>
</tr>
<tr>
 <td>2</td>
 <td>제목</td>
 <td>작성자</td>
 <td>작성일</td>
 <td>조회수</td>
</tr>
<tr>
 <td>3</td>
 <td>제목</td>
 <td>작성자</td>
 <td>작성일</td>
 <td>조회수</td>
</tr>
</table>
</body>
</html>


[table2.css]
.boardList
{
 clear: both;
 table-layout: fixed;
 font-size: 12px;
 width: 100%;
 border-collapse: collapse;
 color: #ff2d88;
 background-color: #fcfcfc;
 text-align: center;
 border-top: 2px solid #8f73d7;
 border-bottom: 1px solid #ececec;
}

.boardList th
{
 padding: 0;
 font-weight:bold;
 height:30px;
}

.boardList td
{
 padding: 5px 0px 0px 0px;
 font-weight:normal;
 color:#333;
 height:21px;
 border-top:1px solid #ececec;
}

.boardList th.number {width: 53px;background: url('../images/menu_barbg.gif') right no-repeat;}
.boardList th.title {width: *;background: url('../images/menu_barbg.gif') right no-repeat;}
.boardList th.writer {width: 70px;background: url('../images/menu_barbg.gif') right no-repeat;}
.boardList th.date {width: 55px;background: url('../images/menu_barbg.gif') right no-repeat;}
.boardList th.viewCnt {width: 55px;}

Posted by 은둔고수
프로그램/html,css2009. 7. 18. 13:45
웹퍼블리셔, css, 웹표준, html 서적 정보


웹표준 교과서 : XHTML과 CSS로 하는 '바른' 웹 사이트
[구매가능 사이트 : 강컴] http://kangcom.com/sub/view.asp?sku=200707180005

[구매가능 사이트 : 예스24] http://www.yes24.com/24/goods/2634462

 * 예스24가 조금 싸네요.

 

웹 2.0을 이끄는 방탄웹(크리에이티브한 웹 표준 기법과 제작 사례) 
[구매가능 사이트 : 강컴] http://kangcom.com/sub/view.asp?sku=200902050008

[구매가능 사이트 : 예스24] http://www.yes24.com/24/goods/3280568

 * 같은 가격

 

제프리 젤드만의 웹표준 가이드: 웹 디자이너와 개발자, 그리고 사용자를 위한 올바른 선택(2ed)

[구매가능 사이트 : 강컴] http://kangcom.com/sub/view.asp?sku=200712210002

[구매가능 사이트 : 예스24] http://www.yes24.com/24/goods/2795721

 * 강컴이 조금 싸네요.

 

CSS 마스터 전략 : 고급 웹 표준 사이트 제작을 위한

[구매가능 사이트 : 강컴] htthttp://kangcom.com/sub/view.asp?sku=200612140007

[구매가능 사이트 : 예스24] http://www.yes24.com/24/goods/2306350

 * 같은 가격

 

 

[관련 추천 블로그] http://blog.webmini.net/465

 

[웹 표준 사이트] w3schools.com

Posted by 은둔고수
프로그램/html,css2009. 7. 15. 22:18

[css-tip]css 초기화

 

초기화를 하지 않는 경우 브라우저마다 버전마다 기본으로 지정되어있는 css를 사용하게되어 크로스브라우징을 구현하는데 문제가 된다.

 

초기화를 하게 되면 모든 브라우저에서 다 공통으로 지정이되므로 크로스브라우징을 구현함에 있어서 권장한다.

 

아래 에를 참고로 본인이 원하는 css 초기화를 구현할 수 있다.

 

예> * 는 전체를 뜻한다.

/* css 초기화 */

*{

  margin:0; /* margin 여백 : 0 */
  padding:0;  /* padding 여백 : 0 */
  border:0;  /* 선 굵기 : 0 */
  background-color:transparent;  /* 배경색상 투명 */
  color:#666; /* 색상 */
  font-size:100%;  /* 폰트 크기 */
  font-weight:normal;  /* 폰트 굴기 */
  font-style:normal;  /* 폰트 모양 */
  text-decoration:none;  /* 폰트 장식 */
}
 
Posted by 은둔고수
프로그램/html,css2009. 7. 14. 22:03

alt와 title의 차이점

 

 

1. alt(alternative) : 이미지의 대안, 이미지에 대한 설명

① 인터넷 속도, 또는 컴퓨터 사양 문제로 웹브라우저 설정을 '이미지 출력 안 함'으로 한 사용자에게 이미지에 대한 간략한 설명을 볼 수 있음. (데스크탑이 아닌 모바일기기로 접속시에도 유용함.)
② 시각장애인의 웹서핑시 사용하는 리더(reader) 프로그램이 텍스트는 읽어주나, 이미지는 읽을 수 없으므로 alt태그 안의 설명을 읽어줌.
③ 일반인 웹서핑시 인터넷 접속 등의 문제로 해당 이미지를 불러오지 못했을 때, 배꼽과 함께 이미지 설명을 보여줌.

 

2. title : 이미지 위에 마우스 포인터를 올려 놓았을 때 풍선 도움말처럼 뜨게 함.
① 이미지뿐 아니라, a태그, span태그, td태그 등 거의 대부분의 태그에 사용할 수 있고, '클릭하시면 다음 사진으로 바뀝니다.' 등의 간단한 풍선도움말 형식을 사용할 수 있음. 특히 웹표준에서는 a태그에 title 속성은 필수항목임. 링크주소에 대한 설명을 넣어, 링크주소에도 의미를 부여할 수 있음.
② 터치스크린 모바일기기에서 웹브라우징시에는 a링크 또는 이미지에 마우스 포인터를 올려놓을 수 없으므로, 한 번 터치시 title내용을 보여주고, 두 번 터치시 해당 링크로 접속이 됨.
③ 일반적인 게시판 리스트 페이지에서 게시물 제목을 일정 길이로 잘랐을 때, title속성에 전체 제목을 넣어주면, 해당 게시물을 클릭할 필요 없이 마우스 오버만으로 전체 제목을 볼 수 있음.

 

IE에서 alt속성의 내용을 마우스 오버시 보여줌으로 인해 alt와 title의 구별에 혼동을 주곤 하지만, alt와 title은 용도와 기능 면에서 확실히 다른 속성이다.

Posted by 은둔고수