CSS – print next page

June 16th, 2011

page-break-before: always;

CSS, Style ,

Vertical Centering in CSS

July 26th, 2010

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”>
<html>
<head>
<title>Universal vertical center with CSS</title>
<style>
.greenBorder {border: 1px solid green;} /* just borders to see it */
</style>
</head>

<body>
<div style=”display: table; height: 400px; #position: relative; overflow: hidden;“>
<div style=” #position: absolute; #top: 50%;display: table-cell; vertical-align: middle;“>
<div style=” #position: relative; #top: -50%“>
any text<br>
any height<br>
any content, for example generated from DB<br>
everything is vertically centered
</div>
</div>
</div>
</body>
</html>

CSS ,

CSS Button

May 29th, 2010

在IE顯示下正常會左右出現一些空白, 只要加以下css, 就會和firefox一樣顯示button的闊度

overflow:visible;

CSS ,