Forum Moderators: not2easy
.infobox{background-image:url('images/infobox/tp-boxfooter.png');background-repeat:no-repeat;background-position:bottom;margin:0px 0px 0px 0px;padding:0px 0px 10px 0px;}
.infoboxcontents{font-size:10px;margin:0px 0px 0px 1px;padding:11px 5px 5px 5px;background-image:url('images/infobox/tp-boxbody.gif');background-repeat:repeat-y;}
.infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0px 6px 5px;margin:5px 0px 0px 1px;background-image:url('images/infobox/tp-boxheader.png');background-repeat:no-repeat;}
.infobox {
background-image: url('images/infobox/tp-boxfooter.png');
background-repeat: no-repeat;
background-position: bottom;
margin: 0px 0px 0px 0px;
padding: 0px 0px 10px 0px;
}
.infoboxcontents {
font-size: 10px;
margin: 0px 0px 0px 1px;
padding: 11px 5px 5px 5px;
background-image: url('images/infobox/tp-boxbody.gif');
background-repeat: repeat-y;
}
.infoboxheading {
font-family: Helvetica,sans-serif;
font-size: 12px;
font-weight: bold;
color: #333333;
padding: 5px 0px 6px 5px;
margin: 5px 0px 0px 1px;
background-image: url('images/infobox/tp-boxheader.png');
background-repeat: no-repeat;
}
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.infobox {
background: url('images/infobox/tp-boxfooter.png') no-repeat bottom;
margin: 0;
padding: 0 0 10px 0;
}
.infoboxcontents {
margin: 0 0 0 1px;
padding: 11px 5px 5px 5px;
background: url('images/infobox/tp-boxbody.gif') repeat-y;
}
.infoboxheading {
padding: 5px 0 6px 5px;
margin: 5px 0 0 1px;
background: url('images/infobox/tp-boxheader.png') no-repeat;
}
</style>
<title>Test Case</title>
</head>
<body>
<div class="infobox">
<div class="infoboxcontent">
<div class="infoboxheading">
Heading
</div>
Contents
</div>
Footer
</div>
</body>
</html>
<!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>
<title>Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<!--[if IE]>
<div id="IEroot">
<![endif]-->
<div id="container">
<div id="header">
<span id="header-logo"><a href="index.php"><img src="images/logo.jpg" alt="" title="" width="868" height="178" /></a>
</span>
<div class="divider-header"></div>
<div id="header-navaccount">
<a href="http://www.domain.com/account.php" class="headerNavigation">MY ACCOUNT</a> | <a href="http://www.domain.com/shopping_cart.php" class="headerNavigation">CART CONTENTS</a> | <a href="http://www.domain.com/checkout_shipping.php" class="headerNavigation">CHECKOUT</a>
</div>
<div id="header-breadcrumbs">
<a href="http://www.domain.com" class="header-breadcrumbs">Home</a> » <a href="http://www.domain.com/index.php" class="header-breadcrumbs">Store</a>
</div>
<div class="divider-header"></div>
</div>
<div id="page">
<div id="pagecolumnleft">
<div class="infoboxheading">
Categories<div class="divider"></div></div>
<div class="infobox">
<div class="infoboxcontents">
<a href="http://www.domain.com/books.html">Books</a><br /><a href="http://www.domain.com/dvds.html">DVDs</a><br /><a href="http://www.domain.com/cds.html">CDs</a><br /><a href="http://www.domain.com/software.html">Software</a><br /></div>
</div>
</div>
<div id="pagecontent">
<div id="content-head"></div>
<div id="content-body">
<h1>Welcome</h1>
<div class="divider-short"></div>
<p>Introduction</p>
<div class="divider-short"></div>
</div>
<div id="content-foot"></div>
</div>
<div id="pagecolumnright">
<div class="infoboxheading">Online Chat
<div class="divider-short"></div>
</div>
<div class="infobox">
<div class="infoboxcontents">
<div class="center"><script type="text/javascript" src="../support/visitor/index.php?_m=livesupport&_a=htmlcode&departmentid=0"></script><noscript><p>Please enable Javascript to use our Online Support!</p></noscript></div>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="footer-box"></div>
</div>
</div>
<!--[if IE]>
</div>
<![endif]-->
</body>
</html>
fieldset,img{border:none;}
table{border-collapse:collapse;border-spacing:0;}
CHECKBOX, INPUT, RADIO, SELECT{font-size:11px;}
body{margin-left:auto;margin-right:auto;width:100%;background-color:#ffffff;overflow:scroll;font-family:Verdana, Arial, sans-serif;}
#container{width:947px;margin-left:auto;margin-right:auto;}
#header{width:945px;background-color:transparent;}
#page{float:left;width:945px;padding:0;margin:0 0 5px 0;}
#pagecolumnleft{float:left;width:156px;padding:0;margin-left:3px;}
#pagecontent{float:left;width:597px;padding:0;margin:0 16px 0 16px;}
#content-head{padding-top:10px;background-image:url('images/tp-middle-topbar.png');background-repeat:no-repeat;position:relative;top:5px;}
#content-body{border-left:1px solid #95B4F4;border-right:1px solid #95B4F4;padding:12px 12px 0 12px;}
#content-foot{padding:0 0 20px 0;background-image:url('images/tp-middle-bottombar.png');background-repeat:no-repeat;}
#pagecolumnright{float:left;width:156px;padding:0;margin:0;}
#footer{clear:both;text-align:center;width:945px;padding:0;margin:0;}
.leftfloat{float:left;}
.rightfloat{float:right;}
/*.right{text-align:right;}*/
.center{text-align:center;}
/*.divider{clear:both;}*/
.divider-short{clear:both;/*height:5px;*/}
/*.divider-pageheading{clear:both;height:10px;border:0 dashed #F00;}*/
a:hover{font-size:11px;color:#0088CC;line-height:1.4em;text-decoration:none;}
a, p, p.main, .main, .bold, .leftfloat, .rightfloat, .right, .center, ul, li, .modulerow, .modulerowover, .modulerowselected, .pagebox-account, .pagebox, .pagebox-onethird, .pagebox-twothirds, .pagebox-halfwidth, .pagebox-threefourths, .confirm-comments{font-size:11px;color:#333;line-height:1.4em;text-decoration:none;}
p + p{margin-top:1.0em;}
.bold{font-weight:bold;}
.smalltext, p.smalltext{font-size:10px;margin:5px 0 0 0;}
h1{font-size:20px;font-weight:bold;color:#9a9a9a;margin:0;}
h2{font-size:14px;font-weight:normal;margin-bottom:0;padding-bottom:0;color:#9a9a9a;}
h3{font-size:12px;font-weight:bold;margin-bottom:3px;padding-bottom:0;color:#9a9a9a;}
h4{font-size:11px;font-weight:bold;margin-bottom:3px;padding-bottom:0;color:#333333;}
.htc-desc{font-size:14px;font-weight:normal;margin-bottom:0;padding-bottom:0;color:#9a9a9a;float:right;}
#header-logo{display:block;width:868px;margin: 0 auto;}
#header-navaccount{font-size:12px;color:#333333;text-align:right;padding:16px 10px 10px 0; height:13px; background: url("images/bars.png") 0 8px no-repeat;margin-left:3px;}
#header-breadcrumbs{font-size:11px;font-weight:normal;color:#666666;padding:0 0 0 5px;}
a.header-breadcrumbs:hover{color:#0088CC;}
.divider-header{clear:both;height:0;}
.header-error{background:#ff0000;font-family:Tahoma, Verdana, Arial, sans-serif;font-size:12px;color:#ffffff;font-weight:bold;text-align:center;}
.footer-box{background: url("images/bars.png") 0 -31px no-repeat;padding:10px 6px 0 6px;margin-left:3px;}
.footer-links{width:800px;text-align:center;margin:0 auto;}
.footer-links a{font-size:9px;}
.pagebox{border-top:0 solid #E8F2F6;margin:0;padding:5px 10px 5px 10px;}
.pagebox-threefourths{float:left;width:98%;padding:0;}
.pagebox-threefourths img{border:0;margin:5px;}
.infobox{background-image:url('images/infobox/tp-boxfooter.png');background-repeat:no-repeat;background-position:bottom;margin:0 0 0 0;padding:0 0 10px 0;font-size:10px;}
.infoboxcontents{font-size:10px;margin:0 0 0 1px;padding:11px 5px 5px 5px;background-image:url('images/infobox/tp-boxbody.gif');background-repeat:repeat-y;}
.infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0 6px 5px;margin:5px 0 0 1px;background-image:url('images/infobox/tp-boxheader.png');background-repeat:no-repeat;}
#IEroot .infobox{background-image:url('images/infobox/tp-boxfooter.png');background-repeat:no-repeat;background-position:bottom;margin:0 0 0 0;padding:0 0 10px 0;font-size:10px;}
#IEroot .infoboxcontents{font-size:10px;margin:0;padding:11px 5px 5px 5px;background-image:url('images/infobox/tp-boxbody.gif');background-repeat:repeat-y;}
#IEroot .infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0 6px 5px;margin:5px 0 0 0;background-image:url('images/infobox/tp-boxheader.png');background-repeat:no-repeat;}
/* REMOVED - I THINK
.shoppingcart{padding-right:5px;margin-top:0;}
.shoppingcart img{float:right;padding:2px 5px 0 0;}
.leftfloat h1{margin-bottom:5px;width:470px;line-height:22px;}
*/
/* SHOPPING CART BOX */
table.infobox-cart{font-size:10px;line-height:12px;}
td.infoBoxContents-cart{font-size:10px;color:#333333;line-height:12px;}
a.infobox-cart{font-size:10px;line-height:12px;color:#333333;}
a:hover.infobox-cart{font-size:10px;line-height:12px;color:#666666;}
span.newitemincart{font-size:10px;color:#0088CC;}
/*product listing*/
.productlisting-odd, .productlisting-even{float:left;text-align:center;width:130px;border:1px solid #CDCDCD;margin:10px 5px 5px 5px;padding:10px 0 0 0;height:205px;}
.pl-image, .pl-name, .pl-price, .pl-buynow{text-align:center;width:120px;padding-top:2px;padding-bottom:2px;margin:0 auto;}
.pl-price{margin-bottom:5px;font-size:11px;line-height:1.4em;}
.pl-name{height:55px;margin-bottom:2px;}
.pl-buynow{margin-left:25px;}
.pl-image{margin-bottom:5px;}
.productlisting-new-contents{background:#FFFFFF;font-size:10px;padding-bottom:0;}
.productlisting-new-heading{font-size:10px;font-weight:bold;background:#3D79B6;color:#ffffff;padding:2px 0 3px 5px;margin:10px 0 0 0;}
span.errortext{color:#ff0000;}
/*.infobox, span.infobox{font-size:10px;}*/
.errorbox{font-size:10px;background:#ffb3b5;font-weight:bold;}
/*buttons*/
.buttons{background:transparent url('images/button_right.gif') no-repeat scroll top right;color:#4B4B4B;display:block;float:left;font-weight:normal;font-family:Arial, Helvetica, san-serif;font-size:12px;margin:0 6px 0 0;padding-right:10px;border:none;}
.buttons span{background:transparent url('images/button_left.png') no-repeat;display:block;padding:3px 6px 2px 14px;}
.buttons:hover{color:#000000;cursor:pointer;}
.buttons:hover span{}
.buttons_submit{background:transparent url('images/button_left.png') no-repeat;font-weight:normal;font-family:Arial, Helvetica, san-serif;font-size:12px;color:#4B4B4B;display:block;float:left;padding:3px 6px 3px 16px;border:none;}
.buttons_submit:hover{color:#000000;cursor:pointer;}
<!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>
<title>Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body {
margin: 0 auto;
width:100%;
background: #fff;
}
#container {
width:947px;
margin: 0 auto;
}
#page {
float:left;
width:945px;
padding:0;
margin:0 0 5px 0;
}
#pagecolumnleft {
float:left;
width:156px;
padding:0;
margin-left:3px;
}
.infobox {
background: #cc0; /* url('images/infobox/tp-boxfooter.png') no-repeat bottom; */
margin: 0;
padding:0 0 10px 0;
}
.infoboxcontents {
margin: 0 0 0 1px;
padding:11px 5px 5px 5px;
background: #0c0; /* url('images/infobox/tp-boxbody.gif') repeat-y; */
}
.infoboxheading {
color:#333;
padding:5px 0 6px 5px;
margin:5px 0 0 1px;
background: #ccc; /* url('images/infobox/tp-boxheader.png') no-repeat;*/
}
</style>
</head>
<body>
<div id="container">
<div id="page">
<div id="pagecolumnleft">
<div class="infoboxheading">
Categories
<div class="divider"></div>
</div>
<div class="infobox">
<div class="infoboxcontents">
<a href="http://www.example.com/books.html">Books</a><br />
<a href="http://www.example.com/dvds.html">DVDs</a><br />
<a href="http://www.example.com/cds.html">CDs</a><br />
<a href="http://www.example.com/software.html">Software</a><br />
</div>
</div>
</div>
</div>
</div>
</body>
</html>
.infoboxcontents {
margin: 0;
border-left: 2px solid black;
border-right: 2px solid black;
padding:11px 5px 5px 5px;
background: #0c0; /* url('images/infobox/tp-boxbody.gif') repeat-y; */
}
.infoboxheading {
color:#333;
padding:5px 0 6px 5px;
margin:5px 0 0;
background: #ccc; /* url('images/infobox/tp-boxheader.png') no-repeat;*/
}
+--- .infoboxheading -------------+
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
+---------------------------------+
+--- .infobox --------------------+
|+-- .infoboxcontents -----------+|
||~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~||
|+-------------------------------+|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
+---------------------------------+
.infobox{background-image:url('images/infobox/tp-boxfooter.png');background-repeat:no-repeat;background-position:bottom;margin:0 0 0 1px;padding:0 0 10px 0;width:155px;}
.infoboxcontents{font-size:10px;margin:0 0 0 0;padding:11px 5px 5px 5px;/*background-image:url('images/infobox/tp-boxbody.gif');background-repeat:repeat-y;*/border-left: 1px solid black;border-right: 1px solid black;}
.infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0 6px 5px;margin:5px 0 0 1px;background-image:url('images/infobox/tp-boxheader.png');background-repeat:no-repeat;}
#IEroot .infobox{background-image:url('images/infobox/tp-boxfooter.png');background-repeat:no-repeat;background-position:bottom;margin:0 0 0 1px;padding:0 0 10px 0;width:155px;}
#IEroot .infoboxcontents{font-size:10px;margin:0;padding:11px 5px 5px 5px;/*background-image:url('images/infobox/tp-boxbody.gif');background-repeat:repeat-y;*/border-left: 1px solid black;border-right: 1px solid black;}
#IEroot .infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0 6px 5px;margin:5px 0 0 0;background-image:url('images/infobox/tp-boxheader.png');background-repeat:no-repeat;}
#header-navaccount{background: url("images/bars.png") 0 8px no-repeat;}
.footer-box{background: url("images/bars.png") 0 -31px no-repeat;
.infobox{background-image:url('images/infobox/tp-boxfooter.png');background-repeat:no-repeat;background-position:bottom;
.infoboxheading{background-image:url('images/infobox/tp-boxheader.png');background-repeat:no-repeat;
.infobox{background: url("images/sprite.png") 0 -27px no-repeat;
.infofoxheading{background: url("images/sprite.png") 0 0 no-repeat;
+------------------+
|~~ header image ~~|
|------------------|
|~~ footer image ~~|
+------------------+
.infobox {
background: url('images/sprite.png') no-repeat 0 100%; /* center bottom */
}
.infoboxheading {
background: url("images/sprite.png") no-repeat 0 0; /* left top */
}
.infobox{background: url('images/layout.png') no-repeat 0 100%; /* center bottom */margin:0 0 0 1px;padding:0 0 10px 0;width:155px;}
.infoboxcontents{font-size:10px;margin:0;padding:11px 5px 5px 5px;border-left: 1px solid #95B4F4;border-right: 1px solid #95B4F4;background: #fff;}
.infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0 6px 5px;margin:5px 0 0 1px;background: url("images/layout.png") no-repeat 0 -71px; /* left top */ height:27px;}
#content-foot{padding:0 0 20px 0;background: url("images/layout.png") 0 -56px no-repeat;}
.footer-box{background: url("images/layout.png") 0 -31px no-repeat;padding:10px 6px 0 6px;margin-left:3px;}
.infobox{background: url('images/layout.png') no-repeat 0 100%; /* center bottom */margin:0 0 0 1px;padding:0 0 10px 0;width:155px;}
.infoboxcontents{font-size:10px;margin:0;padding:5px 5px 5px 5px;border-left: 1px solid #95B4F4;border-right: 1px solid #95B4F4;background: #fff;}
.infoboxheading{font-family:Helvetica,sans-serif;font-size:12px;font-weight:bold;color:#333333;padding:5px 0 6px 6px;margin:5px 0 0 1px;background: url("images/layout.png") no-repeat 0 -71px; /* left top */}