Differences between revisions 4 and 5
Revision 4 as of 2006-04-13 16:09:09
Size: 947
Editor: 211
Comment:
Revision 5 as of 2006-04-13 16:22:18
Size: 1025
Editor: 211
Comment:
Deletions are marked like this. Additions are marked like this.
Line 35: Line 35:

== Clearfix hack ==
http://www.positioniseverything.net/easyclearing.html

[CSS]기반의 WebDesign 레이아웃을 할 때, 다양한 웹브라우저들을 만족시키기 위한 방법들

div 배경이미지표시

#menu-top {
    background: transparent url('/moin/temp/img/bg02-white-right.png') no-repeat right top;
    /* if it is not woking in IE insert follow line */
}
* html #menu-top { height: 1%; }

IE Box Model Problem

박스가 실제 표시되는 크기는,

  • 일반 브라우저 : width, padding, border 이 모두 합해진 크기.
  • IE : width 가 정해진 크기. (실제 width 는 padding, border를 뺀 크기)

코드예제

#sidebar {
    padding: 10px;
    border: 5px solid black;
    width: 230px; /* for IE */
    voice-family : "\"}"\";
    voice-family : inherit;
    width: 200px; /* original value for other browser */
}

html>body #sidebar {
    width: 200px; /* for opera */
}

Clearfix hack

http://www.positioniseverything.net/easyclearing.html

CssCrossBrowserIssue (last edited 2011-08-03 11:01:03 by localhost)

web biohackers.net