Category
show
전체 (739)
웹표준, 웹접근성™ (5)
웹프로그래밍™ (345)
웹기획™ (0)
웹디자인™ (5)
서버™ (27)
데이터베이스™ (42)
개발자료 (9)
트랜드 (60)
Study English (2)
블루비 (64)
오피스 다이어리 (19)
Textcube (2)
이슈 (20)
컴퓨터 악세사리 (18)
엔터테인먼트 (24)
좋은글 (64)
재테크 (1)
이벤트 (4)
1 2 3 

DIV 가로, 세로 가운데 정렬 스타일시트 소스

웹프로그래밍™/XHTML/CSS 2008/09/02 13:25 by 블루비 Total 340 : Today 1 : Yesterday 41
DIV 가로, 세로 가운데 정렬 스타일시트 소스

미리보기

사용자 삽입 이미지


<!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=euc-kr">
<title> Div Vertical Align </title>
</head>
<style type='text/css'>
/***
* author : blueb (http://blueb.net/blog/1292)
* date : 2008-09-02
*/
#wrap {
width:100%;
height:600px;
border:1px solid #000;
}
#body {
position: relative;
top:50%;
left:50%;
width:200px;
height:200px;
border:1px solid #000;
margin-top:-100px; /*** width 값의 1/2 ***/
margin-left:-100px; /*** height 값의 1/2 ***/
background:yellow;
}
</style>
<body>
<div id='wrap'>
<div id='body'>
</div>
</div>
</body>
</html>

2008/09/02 13:25 2008/09/02 13:25

TRACKBACK :: http://blueb.net/blog/trackback/1292

멀티 엔진을 탑재한 IETester 브라우져

웹프로그래밍™/XHTML/CSS 2008/07/19 22:34 by 블루비 Total 984 : Today 1 : Yesterday 6
IE8 beta 1, IE7, IE6, IE5.5의 랜더링 엔진을 탑재한 브라우져(IETester) 입니다.
웹개발시 편하게 각버전별로 테스트할 수 있어 편할거 같습니다.

사용자 삽입 이미지


IETester



2008/07/19 22:34 2008/07/19 22:34

TRACKBACK :: http://blueb.net/blog/trackback/1267

CSS(Cascading Style Sheets) hack Table

웹프로그래밍™/XHTML/CSS 2008/05/29 15:27 by 블루비 Total 815 : Today 0 : Yesterday 5
CSS(Cascading Style Sheets) hack Table
사용자 삽입 이미지
2008/05/29 15:27 2008/05/29 15:27

TRACKBACK :: http://blueb.net/blog/trackback/1239

ul 태그와 CSS를 이용한 탭(Tab)코딩

웹프로그래밍™/XHTML/CSS 2008/05/08 09:46 by 블루비 Total 917 : Today 0 : Yesterday 4
IE6, IE7, FF2 브라우저에서 작동되는 ul 태그를 이용한 탭(Tab) style 코딩 입니다.
슬슬 웹표준 코딩을 준비하느라.
짬짬이 만들어 본 소스입니다.

미리보기

FF2, IE6, IE7 (ul+css) 탭 코딩
http://blueb.net/dev/css/tabs.html


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>Tabs</title>
<!-- Description	: XHTML Tabs style code [ IE6 , IE7 , FF2]	-->
<!-- Author			: blueb(http://blueb.net/blog)						-->
<!-- Date			: 2008-05-08											-->
</head>
<body>
<script type='text/javascript'>
function tabs(idx){
	for(i = 1; i <= 3 ; i++ ){
		document.getElementById('tab'+i).className = "";
		document.getElementById('content'+i).className = "content hide";
	}
	document.getElementById('tab'+idx).className = "active";
	document.getElementById('content'+idx).className = "content show";
}
</script>

<!--[if IE 6]>
<style type='text/css'>
/* IE 6 */
div.tabs-area {
	position:relative;
	z-index:2;
	width:100%;
	height:48px;
	padding:0;margin:0;overflow:hidden;
}

div.tabs-line {
	position:relative;
	z-index:1;
	width:100%;
	height:0;
	top:-1px;
	border-top:1px solid #D3D9E6;
}
</style>
<![endif]-->
<!--[if IE 7]>
<style type='text/css'>
/* IE 7 */
div.tabs-area {
	position:relative;
	z-index:2;
	height:48px;width:100%;padding:0;margin:0
}

div.tabs-line {
	position:relative;
	z-index:1;
	width:100%;
	height:1px;
	top:-2px;
	border-bottom:1px solid #D3D9E6;
}
</style>
<![endif]-->
<!--[if !IE]>-->
<style type='text/css'>
div.tabs-area {
	position:relative;
	z-index:2;
	width:100%;
	height:45px;
	padding:0;margin:0;overflow:hidden;
}

div.tabs-line {
	position:relative;
	z-index:1;
	width:100%;
	height:1px;
	top:-1px;
	border-top:1px solid #D3D9E6;
}
</style>
<!--<![endif]-->
<style type='text/css'>

ul.tabs {
	padding:0px;margin:0px;
	z-index:2;
}

ul.tabs li {
	list-style:none;
	display:inline;
	height:50px;
}

ul.tabs li a {
	padding:5px 20px 3px 20px;
	border:1px solid #D3D9E6;
	text-decoration:none;   
	font-size:9pt;
	line-height:30px;
    color:#4B69AF; 
    background:#E9ECF2;
}

ul.tabs li a:hover {   
    background:#E8FFFF;
}

ul.tabs li a.active {   
    background:#fff;
    color:#4B69AF;   
    border:1px solid #D3D9E6;    
    border-bottom: 1px solid #ffffff;   
	padding:10px 20px 3px 20px;
	font-weight:bold;
	line-height:70px;
}

div.content {
	/* 컨텐츠 영역 박스 스타일 지정 하는곳 */
}
div.show		{ display:block;}
div.hide		{ display:none; }

</style>
<h3>IE6, IE7, FF2 Tabs</h3>
<div>
	<div class='tabs-area'>
		<ul class='tabs'>
		<li> </li>
		<li><a id='tab1' title="Tab1 Desc" href="javascript:tabs('1');" class='active'>Tab 1</a></li>
		<li><a id='tab2' title="Tab2 Desc" href="javascript:tabs('2');">Tab 2</a></li>
		<li><a id='tab3' title="Tab3 Desc" href="javascript:tabs('3');">Tab 3</a></li>
		</ul>
	</div>
	<div class='tabs-line'></div>
</div>


<div id='content1' class='content show'>
	<h1>Content 1</h1>
</div>
<div id='content2' class='content hide'>
	<h1>Content 2</h1>
</div>
<div id='content3' class='content hide'>
	<h1>Content 3</h1>
</div>

</body>
</html>
2008/05/08 09:46 2008/05/08 09:46

TRACKBACK :: http://blueb.net/blog/trackback/1224

IE conditional comment hack

웹프로그래밍™/XHTML/CSS 2008/02/13 14:30 by 블루비 Total 1007 : Today 0 : Yesterday 7

Conditional comment syntax

The conditional comment is just a specially formatted HTML comment that is picked up only by various flavors of Internet Explorer for Windows. You could for instance use this to apply the PNG Behavior

The following conditional comment is being picked up by IE5, IE5.5 and IE6:

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie.css" />
<![endif]-->

Targeting IE5

If you need to target IE5 specifically, you do so by appending a version number:

<!--[if IE 5.0]>
<link rel="stylesheet" type="text/css" href="ie-5.0.css" />
<![endif]-->

Targeting IE5.5

If you specifically need to target IE5.5, it’d look like this:

<!--[if IE 5.5]>
<link rel="stylesheet" type="text/css" href="ie-5.5.css" />
<![endif]-->

Targeting IE6

The same goes for IE6:

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie-6.0.css" />
<![endif]-->

IE5 and IE5.5 - box model hacking

If you need to work around IE5’s broken box model, using conditional comments, you can use several alternative syntaxes.

The first syntax will apply the stylesheet to any version of IE whose version number starts with 5:

<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="ie-5.0+5.5.css" />
<![endif]-->

Alternatively, you could say that stylesheets should be applied to any IE version whose version number is less than 6:

<!--[if IE lt 6]>
<link rel="stylesheet" type="text/css" href="ie-5.0+5.5.css" />
<![endif]-->

Order

If you don’t want your IE-specific styles to be overridden by your regular stylesheet, source order is significant; you’d want to specify the common stylesheet first, with the IE-specific versions following:

<link rel="stylesheet" type="text/css" href="common.css" />

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie.css" />
<![endif]-->

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie-6.0.css" />
<![endif]-->

<!--[if IE lt 6]>
<link rel="stylesheet" type="text/css" href="ie-5.0+5.5.css" />
<![endif]-->


http://www.quirksmode.org/css/condcom.html

http://virtuelvis.com/archives/2004/02/css-ie-only

CSS hacks and filters


2008/02/13 14:30 2008/02/13 14:30

TRACKBACK :: http://blueb.net/blog/trackback/1092

CSS !important 속성

웹프로그래밍™/XHTML/CSS 2007/12/13 10:07 by 블루비 Total 1375 : Today 1 : Yesterday 2
!important 속성은 2중 선언된 스타일에 대해서 우선순위로 만들어준다.
다시 말해 같은 아이디,클래스,태그에 대한 2중선언이 있을시 !important 된것을 기준으로 스타일이 적용 되며,
이중 선언된 스타일에 대해서는 무시되어 진다.

아래의 예를 보면서 이해 하기 바란다.

!important 없이 #p2 아이디에 대해서 2중선언 되어 있다 첫번째 #p2의 글자 색상은 blueb 2번째 #p2의 색상은 color 아래의 결과에서 나타나듯이 마지막에 선언된 red 의 스타일이 적용되어 진다.
<style type="text/css">
#p1, #p2 { color: blue; }
#p2 {color:red;}
</style>

안녕. 나는 블루비야.

CSS 너무 어려워.

쉽게 배울 수 없을까?

안녕. 나는 블루비야.

CSS 너무 어려워.

쉽게 배울 수 없을까?



위코드와 다른 점은 !important가 추가 되었다.
결과에서 보듯시 마지막 #p5 의 글자 색상은 red 이다 하지만 결과는 blue 스타일이 적용되어있다.
<style type="text/css">
#p4, #p5 { color: blue !important; }
#p5 {color:red;}
</style>

안녕. 나는 블루비야.

CSS 너무 어려워.

쉽게 배울 수 없을까?

안녕. 나는 블루비야.

CSS 너무 어려워.

쉽게 배울 수 없을까?

2007/12/13 10:07 2007/12/13 10:07

TRACKBACK :: http://blueb.net/blog/trackback/1001

HTML5 미리 보기

웹프로그래밍™/XHTML/CSS 2007/12/07 02:15 by 블루비 Total 415 : Today 0 : Yesterday 2
http://www.alistapart.com/articles/previewofhtml5

사용자 삽입 이미지






























HTML 4의 구조는 아래와 같지만
사용자 삽입 이미지


HTML5 에서는 ?? 새로운 Tag
사용자 삽입 이미지

2007/12/07 02:15 2007/12/07 02:15
TAG

TRACKBACK :: http://blueb.net/blog/trackback/978

[CSS] 배경 이미지 투명효과 적용

웹프로그래밍™/XHTML/CSS 2007/12/06 06:57 by 블루비 Total 724 : Today 3 : Yesterday 4
배경 이미지 투명효과 적용
/* IE Only */
#element-id {
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='[image url]', sizingMethod='scale'),alpha(opacity=85);
}
/* Other brower */
html>body #element-id {
    background:url([image url]) transparent; opacity:0.85; 
}
[/css]
 
2007/12/06 06:57 2007/12/06 06:57
TAG

TRACKBACK :: http://blueb.net/blog/trackback/975

하단 고정 레이어 스타일(CSS) 따라하기

웹프로그래밍™/XHTML/CSS 2007/11/30 14:21 by 블루비 Total 1037 : Today 1 : Yesterday 3
Ray Of Light for TT - darklight ver.1.1(사용자 수정본) 의 스킨을 보시면 하단에 메뉴 레이어가
위치하고 스크롤이 되어도 위치가 고정되어 있습니다.

이와 같은 하단에 고정된 레이어를 사용하고자 하시는 분들을 위해 샘플소스를 만들어 봤습니다.
꼭 하단에만 위치할 필요는 없죠.. 소스를 고치면 상단 고정도 가능합니다.

샘플보기


<!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=euc-kr" />
<title> new document </title>
<style type='text/css'>
* {
margin:0;
padding:0;
}

html {
height:100%;
width:100%;
overflow:hidden;
}

body {
margin:0;
padding:0;
}

#header {
color:#fff;
position:absolute;
bottom:0pt;
height:50px;
background-color:#000;
width:90%;
z-index:99;
}
#body {
width:100%;
position:absolute;
height:100%;
overflow-y:scroll;
}
</style>
</head>

<body>
<div id='header'>
하단 고정 레이어
</div>

<div id='body'>
<div style='height:400px;background-color:#660000;width:300px'>
</div>
<div style='height:400px;background-color:#FF6600;width:300px'>
</div>
<div style='height:400px;background-color:#00FF66;width:300px'>
</div>
</div>


</body>
</html>
2007/11/30 14:21 2007/11/30 14:21