웹표준 코딩 처음으로 책보며 끌적이다가 잘안되고해서 여러번 시도를 하며 무려 정작 10시간 정도 투자하여 메인 겨우 했습니다.ㅡㅡ.;;
업체 홈페이지이긴 하지만, 메인 디자인은 일반 테이블 코딩하면 20-30분 내에 할 수 있는 것을..ㅡㅡ;;
처음으로 하는 시도라 웹표준 이건 장난이 아닙니다.
아무튼 익스6,7(ie tester로) ,익스8, 크롬, 파폭 브라우저 띄어놓고 일일이 맞는지 확인작업하였습니다.
근데, 익스6에는 공간이 생기네요.. 익스6에는 더블마진이 먹힌다는데 맞나요?
문제의 부분은 아래와 같습니다.(빨간색 선해서 박스 챠놓은 부분)

css 코디은 아래와 같이 하였습니다.
---------------------------------------------------------------------
#longbanner{float:left:width:500px;height:127px;}
#longbanner ul {
list-style:none;
margin:0;
padding:14px;
}
list-style:none;
margin:0;
padding:14px;
}
#longbanner li {
padding: 0px ;
border : 0;
float: left;
padding: 0px ;
border : 0;
float: left;
}
#pic {float:left:widh:500px;height:148px;}
-------------------------------------------------------------------
아래는 div 코딩
<div id="longbanner">
<ul>
<li><img src="images/callcenter_banner.gif" width="242" height="100" alt="온라인견적의뢰"/></li>
<li><img src="images/goshop_banner.gif" width="217" height="100" alt="회사개요"/></li>
</ul>
</div>
<div id="pic"><img src="images/pic_t.gif" alt="시공사진"/><br/>시공사진
</div>
<ul>
<li><img src="images/callcenter_banner.gif" width="242" height="100" alt="온라인견적의뢰"/></li>
<li><img src="images/goshop_banner.gif" width="217" height="100" alt="회사개요"/></li>
</ul>
</div>
<div id="pic"><img src="images/pic_t.gif" alt="시공사진"/><br/>시공사진
</div>
------------------------------------------------------------------------------
위에서 longbanner가 바로 고객센터와 spyshop 바로가기 이미지 배너이고, pic이 시공사진 제목이미지 부분 입니다.
전 완전 초보라...
핵을 쓰면 된다고하는 것 같은데, 핵 개념을 알아야 쓰일터인데..쩝;;
아무튼 고수님들 답변 부탁합니다.
댓글 7개
현재 작업 중이라 주소는 알려주기가 그렇고..소스 올려드리겠습니다.
우선 css 소스 입니다.
---------------------------------------------------------------------
@charset "utf-8";
/* CSS Document */
html, body {
height: 100%;
/**margin,padding설정은 화면에 container를 가득채웠을때,스크롤바를 제거하기 위함(기본은 여백잡힘)*/
margin: 0px;
padding: 0px;
background-image: url(images/bg.jpg);background-repeat: no-repeat;background-repeat :repeat-x;
}
div,dl,dt,dd,ol.p,h1,h2,h3,h4,h5,h6,form {margin: 0px;padding: 0px;}
img {border:0;vertical-align:top;}
ul {list-style:none;padding:0;margin:0;}
ul,ol.dl{list-style:none}
.png24 {tmp:expression(setPng24(this));}
/* 레이아웃 큰박스 속성 */
#container {
width: 1000px;
/*html과 body에 height 100%를 주었음으로, 여기도 100%가능*/
height: 100%;
/*박스의 중앙정렬*/
margin: auto;
text-align : left;
}
#header {
float:left;
width:1000px;
height: 130px;
position: relative;
}
#left {
float: left;
width: 500px;
height: 530px;
position: relative;
padding-top:1px;
}
#content {
float:right;
height: 530px;
width: 500px;
position: relative;
text-align : center;
}
#content #content-area {
/*위에 떠있는 header에 가려지는 것을 방지하기 위해서, header의 높이만큼 padding-top값을 부여*/
padding-top: 3px;
/*내용이 footer에 겹치는 것을 방지하기 위해서 footer의 높이만큼 padding-bottom값 부여*/
padding-bottom: 60px;
}
#footer {
height: 60px;
width: 1000px;
position: relative;
clear: both;
float: left;
}
/* 상단 박스 속성 */
#gnb_box {float:left;width:1000px;height:130px;}
#gnb_logo {float:left;width:386px;height:130px;}
#gnb_rightsetbox {float:left;width:614px;height:130px; position:relative;}
#gnb_topmenu {float:left; height:27px; margin-top:23px; position:absolute; z-index:5; right:0;}
#gnb_topmenu li{float:left;}
#gnb_nav {float:left;width:614px;height:80px; position:absolute; z-index:100; top:50px;}
/* 좌측 박스 속성 */
#left_flash {float:left;width:500px;height:530x;}
/* 우축 박스 속성 */
#banner{float:left:width:500px;height:104px;}
#banner ul {
list-style:none;
margin:0;
padding:0px;
}
#banner li {
padding: 28px 33px 11px 25px;
border : 0;
float: left;
}
#box{float:left:width:500px;height:104px;text-align:center}
#box ul {
list-style:none;
margin:0;
padding:0px;
}
#box li {
padding: 0;
border : 0;
float: left;
}
#longbanner{float:left:width:500px;height:127px; padding-top: 34px;}
#longbanner ul {
list-style:none;
margin:0;
padding:14px;
}
#longbanner li {
padding: 0px ;
border : 0;
float: left;
}
#pic {float:left:widh:500px;height:148px;}
/* CSS Document */
@charset "utf-8";
/* CSS Document */
html, body {
height: 100%;
/**margin,padding설정은 화면에 container를 가득채웠을때,스크롤바를 제거하기 위함(기본은 여백잡힘)*/
margin: 0px;
padding: 0px;
background-image: url(images/bg.jpg);background-repeat: no-repeat;background-repeat :repeat-x;
}
div,dl,dt,dd,ol.p,h1,h2,h3,h4,h5,h6,form {margin: 0px;padding: 0px;}
img {border:0;vertical-align:top;}
ul {list-style:none;padding:0;margin:0;}
ul,ol.dl{list-style:none}
.png24 {tmp:expression(setPng24(this));}
/* 레이아웃 큰박스 속성 */
#container {
width: 1000px;
/*html과 body에 height 100%를 주었음으로, 여기도 100%가능*/
height: 100%;
/*박스의 중앙정렬*/
margin: auto;
text-align : left;
}
#header {
float:left;
width:1000px;
height: 130px;
position: relative;
}
#left {
float: left;
width: 500px;
height: 530px;
position: relative;
padding-top:1px;
}
#content {
float:right;
height: 530px;
width: 500px;
position: relative;
text-align : center;
}
#content #content-area {
/*위에 떠있는 header에 가려지는 것을 방지하기 위해서, header의 높이만큼 padding-top값을 부여*/
padding-top: 3px;
/*내용이 footer에 겹치는 것을 방지하기 위해서 footer의 높이만큼 padding-bottom값 부여*/
padding-bottom: 60px;
}
#footer {
height: 60px;
width: 1000px;
position: relative;
clear: both;
float: left;
}
/* 상단 박스 속성 */
#gnb_box {float:left;width:1000px;height:130px;}
#gnb_logo {float:left;width:386px;height:130px;}
#gnb_rightsetbox {float:left;width:614px;height:130px; position:relative;}
#gnb_topmenu {float:left; height:27px; margin-top:23px; position:absolute; z-index:5; right:0;}
#gnb_topmenu li{float:left;}
#gnb_nav {float:left;width:614px;height:80px; position:absolute; z-index:100; top:50px;}
/* 좌측 박스 속성 */
#left_flash {float:left;width:500px;height:530x;}
/* 우축 박스 속성 */
#banner{float:left:width:500px;height:104px;}
#banner ul {
list-style:none;
margin:0;
padding:0px;
}
#banner li {
padding: 28px 33px 11px 25px;
border : 0;
float: left;
}
#box{float:left:width:500px;height:104px;text-align:center}
#box ul {
list-style:none;
margin:0;
padding:0px;
}
#box li {
padding: 0;
border : 0;
float: left;
}
#longbanner{float:left:width:500px;height:127px; padding-top: 34px;}
#longbanner ul {
list-style:none;
margin:0;
padding:14px;
}
#longbanner li {
padding: 0px ;
border : 0;
float: left;
}
#pic {float:left:widh:500px;height:148px;}
/* CSS Document */
-----------------------------------------------------------------------
아래는 웹페이지 소스 입니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>시크릿</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function setPng24(obj) {
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
}
//-->
</script>
</head>
<body>
<div id="container">
<!-- 헤더 부분--->
<div id="header">
<div id="gnb_box">
<div id="gnb_logo"><br/><img src="images/logo.png" width="280" height="107" class="png24" alt="시크릿로고"/></div>
<div id="gnb_rightsetbox">
<div id="gnb_space"></div>
<div id="gnb_topmenu">
<ul>
<li><a href="#"><img src="images/home_btn.gif" alt="HOME" /></a></li>
<li><a href="#"><img src="images/email_btn.gif" alt="EMAIL"/></a></li>
<li><a href="#"><img src="images/admin_btn.gif" alt="ADMIN" /></a></li>
</ul>
</div>
<div id="gnb_nav"><img src="images/nav.gif" width="614" height="80" alt="메뉴이미지"/></div>
</div>
</div>
</div>
<!-- index 부분--->
<div id="left">
<div id="left_flash"><img src="images/left_flash.jpg" width="500" height="530" class="png24" alt="왼쪽플래시"/></div>
</div>
<div id="content">
<div id="content-area">
<div id="banner">
<ul>
<li><img src="images/gobanner_01.gif" width="189" height="65" alt="검색서비스 바로가기"/></li>
<li><img src="images/gobanner_02.gif" width="189" height="65" alt="보안장비 바로가기"/></li>
</ul>
</div>
<div id="box">
<ul>
<li><img src="images/onlineest_t.gif" alt="온라인견적의뢰"/><br/>견적의뢰</li>
<li><img src="images/gocompany_banner.gif" alt="회사개요"/></li>
</ul>
</div>
<div id="longbanner">
<ul>
<li><img src="images/callcenter_banner.gif" width="242" height="100" alt="온라인견적의뢰"/></li>
<li><img src="images/goshop_banner.gif" width="217" height="100" alt="회사개요"/></li>
</ul>
</div>
<div id="pic"><img src="images/pic_t.gif" alt="시공사진"/><br/>시공사진
</div>
</div>
</div>
<!-- index 끝--->
<!-- 하단 부분--->
<div id="footer"><img src="images/copy.gif" width="1000" height="55" alt="카피라이터"/></div>
</div>
</body>
</html>
-------------------------------------------------------------------
이상 입니다. ^^
그리고, 소스 보시고 다른것 혹시 문제점 있으시면 지적부탁드리겠습니다.
저의 질문에 관심 진심으로 감사합니다.
우선 css 소스 입니다.
---------------------------------------------------------------------
@charset "utf-8";
/* CSS Document */
html, body {
height: 100%;
/**margin,padding설정은 화면에 container를 가득채웠을때,스크롤바를 제거하기 위함(기본은 여백잡힘)*/
margin: 0px;
padding: 0px;
background-image: url(images/bg.jpg);background-repeat: no-repeat;background-repeat :repeat-x;
}
div,dl,dt,dd,ol.p,h1,h2,h3,h4,h5,h6,form {margin: 0px;padding: 0px;}
img {border:0;vertical-align:top;}
ul {list-style:none;padding:0;margin:0;}
ul,ol.dl{list-style:none}
.png24 {tmp:expression(setPng24(this));}
/* 레이아웃 큰박스 속성 */
#container {
width: 1000px;
/*html과 body에 height 100%를 주었음으로, 여기도 100%가능*/
height: 100%;
/*박스의 중앙정렬*/
margin: auto;
text-align : left;
}
#header {
float:left;
width:1000px;
height: 130px;
position: relative;
}
#left {
float: left;
width: 500px;
height: 530px;
position: relative;
padding-top:1px;
}
#content {
float:right;
height: 530px;
width: 500px;
position: relative;
text-align : center;
}
#content #content-area {
/*위에 떠있는 header에 가려지는 것을 방지하기 위해서, header의 높이만큼 padding-top값을 부여*/
padding-top: 3px;
/*내용이 footer에 겹치는 것을 방지하기 위해서 footer의 높이만큼 padding-bottom값 부여*/
padding-bottom: 60px;
}
#footer {
height: 60px;
width: 1000px;
position: relative;
clear: both;
float: left;
}
/* 상단 박스 속성 */
#gnb_box {float:left;width:1000px;height:130px;}
#gnb_logo {float:left;width:386px;height:130px;}
#gnb_rightsetbox {float:left;width:614px;height:130px; position:relative;}
#gnb_topmenu {float:left; height:27px; margin-top:23px; position:absolute; z-index:5; right:0;}
#gnb_topmenu li{float:left;}
#gnb_nav {float:left;width:614px;height:80px; position:absolute; z-index:100; top:50px;}
/* 좌측 박스 속성 */
#left_flash {float:left;width:500px;height:530x;}
/* 우축 박스 속성 */
#banner{float:left:width:500px;height:104px;}
#banner ul {
list-style:none;
margin:0;
padding:0px;
}
#banner li {
padding: 28px 33px 11px 25px;
border : 0;
float: left;
}
#box{float:left:width:500px;height:104px;text-align:center}
#box ul {
list-style:none;
margin:0;
padding:0px;
}
#box li {
padding: 0;
border : 0;
float: left;
}
#longbanner{float:left:width:500px;height:127px; padding-top: 34px;}
#longbanner ul {
list-style:none;
margin:0;
padding:14px;
}
#longbanner li {
padding: 0px ;
border : 0;
float: left;
}
#pic {float:left:widh:500px;height:148px;}
/* CSS Document */
@charset "utf-8";
/* CSS Document */
html, body {
height: 100%;
/**margin,padding설정은 화면에 container를 가득채웠을때,스크롤바를 제거하기 위함(기본은 여백잡힘)*/
margin: 0px;
padding: 0px;
background-image: url(images/bg.jpg);background-repeat: no-repeat;background-repeat :repeat-x;
}
div,dl,dt,dd,ol.p,h1,h2,h3,h4,h5,h6,form {margin: 0px;padding: 0px;}
img {border:0;vertical-align:top;}
ul {list-style:none;padding:0;margin:0;}
ul,ol.dl{list-style:none}
.png24 {tmp:expression(setPng24(this));}
/* 레이아웃 큰박스 속성 */
#container {
width: 1000px;
/*html과 body에 height 100%를 주었음으로, 여기도 100%가능*/
height: 100%;
/*박스의 중앙정렬*/
margin: auto;
text-align : left;
}
#header {
float:left;
width:1000px;
height: 130px;
position: relative;
}
#left {
float: left;
width: 500px;
height: 530px;
position: relative;
padding-top:1px;
}
#content {
float:right;
height: 530px;
width: 500px;
position: relative;
text-align : center;
}
#content #content-area {
/*위에 떠있는 header에 가려지는 것을 방지하기 위해서, header의 높이만큼 padding-top값을 부여*/
padding-top: 3px;
/*내용이 footer에 겹치는 것을 방지하기 위해서 footer의 높이만큼 padding-bottom값 부여*/
padding-bottom: 60px;
}
#footer {
height: 60px;
width: 1000px;
position: relative;
clear: both;
float: left;
}
/* 상단 박스 속성 */
#gnb_box {float:left;width:1000px;height:130px;}
#gnb_logo {float:left;width:386px;height:130px;}
#gnb_rightsetbox {float:left;width:614px;height:130px; position:relative;}
#gnb_topmenu {float:left; height:27px; margin-top:23px; position:absolute; z-index:5; right:0;}
#gnb_topmenu li{float:left;}
#gnb_nav {float:left;width:614px;height:80px; position:absolute; z-index:100; top:50px;}
/* 좌측 박스 속성 */
#left_flash {float:left;width:500px;height:530x;}
/* 우축 박스 속성 */
#banner{float:left:width:500px;height:104px;}
#banner ul {
list-style:none;
margin:0;
padding:0px;
}
#banner li {
padding: 28px 33px 11px 25px;
border : 0;
float: left;
}
#box{float:left:width:500px;height:104px;text-align:center}
#box ul {
list-style:none;
margin:0;
padding:0px;
}
#box li {
padding: 0;
border : 0;
float: left;
}
#longbanner{float:left:width:500px;height:127px; padding-top: 34px;}
#longbanner ul {
list-style:none;
margin:0;
padding:14px;
}
#longbanner li {
padding: 0px ;
border : 0;
float: left;
}
#pic {float:left:widh:500px;height:148px;}
/* CSS Document */
-----------------------------------------------------------------------
아래는 웹페이지 소스 입니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>시크릿</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function setPng24(obj) {
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
}
//-->
</script>
</head>
<body>
<div id="container">
<!-- 헤더 부분--->
<div id="header">
<div id="gnb_box">
<div id="gnb_logo"><br/><img src="images/logo.png" width="280" height="107" class="png24" alt="시크릿로고"/></div>
<div id="gnb_rightsetbox">
<div id="gnb_space"></div>
<div id="gnb_topmenu">
<ul>
<li><a href="#"><img src="images/home_btn.gif" alt="HOME" /></a></li>
<li><a href="#"><img src="images/email_btn.gif" alt="EMAIL"/></a></li>
<li><a href="#"><img src="images/admin_btn.gif" alt="ADMIN" /></a></li>
</ul>
</div>
<div id="gnb_nav"><img src="images/nav.gif" width="614" height="80" alt="메뉴이미지"/></div>
</div>
</div>
</div>
<!-- index 부분--->
<div id="left">
<div id="left_flash"><img src="images/left_flash.jpg" width="500" height="530" class="png24" alt="왼쪽플래시"/></div>
</div>
<div id="content">
<div id="content-area">
<div id="banner">
<ul>
<li><img src="images/gobanner_01.gif" width="189" height="65" alt="검색서비스 바로가기"/></li>
<li><img src="images/gobanner_02.gif" width="189" height="65" alt="보안장비 바로가기"/></li>
</ul>
</div>
<div id="box">
<ul>
<li><img src="images/onlineest_t.gif" alt="온라인견적의뢰"/><br/>견적의뢰</li>
<li><img src="images/gocompany_banner.gif" alt="회사개요"/></li>
</ul>
</div>
<div id="longbanner">
<ul>
<li><img src="images/callcenter_banner.gif" width="242" height="100" alt="온라인견적의뢰"/></li>
<li><img src="images/goshop_banner.gif" width="217" height="100" alt="회사개요"/></li>
</ul>
</div>
<div id="pic"><img src="images/pic_t.gif" alt="시공사진"/><br/>시공사진
</div>
</div>
</div>
<!-- index 끝--->
<!-- 하단 부분--->
<div id="footer"><img src="images/copy.gif" width="1000" height="55" alt="카피라이터"/></div>
</div>
</body>
</html>
-------------------------------------------------------------------
이상 입니다. ^^
그리고, 소스 보시고 다른것 혹시 문제점 있으시면 지적부탁드리겠습니다.
저의 질문에 관심 진심으로 감사합니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 12386 |
PHP
메타태그 주요정리 입니다.
|
| 12385 |
JavaScript
광고나 공지사항 띄울때 다음부터 이창을 띄우지 않기 입니다.
|
| 12384 |
MySQL
테이블 생성, 컬럼 추가, 삭제, 수정
|
| 12380 |
JavaScript
입력값을 형식에 맞게 해주는 플러그인이네요
3
|
| 12379 |
JavaScript
팝업창에서 오늘 하루 이 페이지 열지 않기 체크박스 사용입니다.
|
| 12378 |
JavaScript
팝업창 하루에 한번만 열기 입니다
|
| 12377 | |
| 12376 |
jQuery
유투브 관련 플러그인
|
| 12375 |
jQuery
input 태그에 readonly 추가하는 방법
|
| 12374 | |
| 12373 | |
| 12372 |
jQuery
자주 쓰이는 Jquery 팁 20가지 입니다.
|
| 12371 |
jQuery
jQuery 오른쪽 퀵메뉴 입니다.
|
| 12369 |
jQuery
textarea 글자수 카운트 입니다.
1
|
| 368 | |
| 12368 |
jQuery
ifrmae 자동 리사이즈 jQuery 입니다.
|
| 12367 |
jQuery
슬라이딩 형태로 보여주기 입니다.
|
| 12366 |
jQuery
라인 그래프 그리기 입니다.
|
| 12365 |
jQuery
콤보박스관련 플러그인
|
| 12363 |
MySQL
MySQL 기본 명령어 정리 입니다.
1
|
| 12362 |
MySQL
MySQL 한글 정렬하기 입니다.
|
| 12361 |
MySQL
그림을 MySQL DB에 저장하는 방법
|
| 12360 |
JavaScript
엑셀 흉내내기
|
| 12359 | |
| 12358 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기