Prev | Current Page 101 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

css" />








CHAPTER 3 ?–  STARTING THE TSHIRTSHOP PROJECT 44
Place contents here




Place list of departments here





9. Create a file named tshirtshop.css in the tshirtshop/styles folder, and write this code:
@import "reset-min.css";
@import "base-min.css";
@import "fonts-min.css";
@import "grids-min.css";
body {
font-size: 85%;
font-family: "georgia";
}
.yui-t2, #bd, #yui-main {
z-index: -5;
}
.yui-b, .yui-g {
z-index: auto;
}
#header {
margin-top: 15px;
text-align: right;
}
.error_box {
background-color: #ffffcc;
border: 1px solid #dc143c;
color: #DC143C;
margin: 0 auto;
overflow: auto;
padding: 5px;
position: relative;
text-align: left;
width: 90%;
z-index: 5;
}
CHAPTER 3 ?–  STARTING THE TSHIRTSHOP PROJECT 45
10. Add a file named config.php to the tshirtshop/include folder, with the following contents:
// SITE_ROOT contains the full path to the tshirtshop folder
define('SITE_ROOT', dirname(dirname(__FILE__)));
// Application directories
define('PRESENTATION_DIR', SITE_ROOT .