tyolson
01-24-2012, 03:25 AM
Can anyone please tell me what I have to do in order to center my website.
This is what I all did
1) I had a website designed in photoshop
2) I then sliced it up into images
3) I used "save for web and devices"
4) In photoshop settings i generated css for my slices
5) I opened everything up in dreamweaver, it looks like how it is suppose to
6) I then try centering, and NOTHING will work.
Can anyone please take a look at my code and tell me what I got to do in order to center my entire website? I've been searching for hours and hours looking for an answer :(
<html>
<head>
<title>index_mysportbikemods</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Save for Web Styles (index_mysportbikemods.psd) -->
<style type="text/css">
<!--
#Table_01 {
position:absolute;
left:0px;
top:0px;
width:600px;
height:800px;
}
#index-mysportbikemods3-01 {
position:absolute;
left:0px;
top:0px;
width:600px;
height:178px;
}
#index-mysportbikemods3-02 {
position:absolute;
left:0px;
top:178px;
width:105px;
height:128px;
}
#index-mysportbikemods3-03 {
position:absolute;
left:105px;
top:178px;
width:135px;
height:128px;
}
#index-mysportbikemods3-04 {
position:absolute;
left:240px;
top:178px;
width:99px;
height:128px;
}
#index-mysportbikemods3-05 {
position:absolute;
left:339px;
top:178px;
width:126px;
height:128px;
}
#index-mysportbikemods3-06 {
position:absolute;
left:465px;
top:178px;
width:135px;
height:128px;
}
#index-mysportbikemods3-07 {
position:absolute;
left:0px;
top:306px;
width:16px;
height:494px;
}
#index-mysportbikemods3-08 {
position:absolute;
left:16px;
top:306px;
width:107px;
height:472px;
}
#index-mysportbikemods3-09 {
position:absolute;
left:123px;
top:306px;
width:12px;
height:494px;
}
#index-mysportbikemods3-10 {
position:absolute;
left:135px;
top:306px;
width:435px;
height:472px;
}
#index-mysportbikemods3-11 {
position:absolute;
left:570px;
top:306px;
width:30px;
height:494px;
}
#index-mysportbikemods3-12 {
position:absolute;
left:16px;
top:778px;
width:107px;
height:22px;
}
#index-mysportbikemods3-13 {
position:absolute;
left:135px;
top:778px;
width:435px;
height:22px;
}
-->
</style>
<!-- End Save for Web Styles -->
</head>
<body style="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- Save for Web Slices (index_mysportbikemods.psd) -->
<div id="Table_01">
<div id="index-mysportbikemods3-01">
<img src="images/index_mysportbikemods3_01.gif" width="600" height="178" alt="">
</div>
<div id="index-mysportbikemods3-02">
<img src="images/index_mysportbikemods3_02.gif" width="105" height="128" alt="">
</div>
<div id="index-mysportbikemods3-03">
<img src="images/index_mysportbikemods3_03.gif" width="135" height="128" alt="">
</div>
<div id="index-mysportbikemods3-04">
<img src="images/index_mysportbikemods3_04.gif" width="99" height="128" alt="">
</div>
<div id="index-mysportbikemods3-05">
<img src="images/index_mysportbikemods3_05.gif" width="126" height="128" alt="">
</div>
<div id="index-mysportbikemods3-06">
<img src="images/index_mysportbikemods3_06.gif" width="135" height="128" alt="">
</div>
<div id="index-mysportbikemods3-07">
<img src="images/index_mysportbikemods3_07.gif" width="16" height="494" alt="">
</div>
<div id="index-mysportbikemods3-08">
<img src="images/index_mysportbikemods3_08.jpg" width="107" height="472" alt="">
</div>
<div id="index-mysportbikemods3-09">
<img src="images/index_mysportbikemods3_09.gif" width="12" height="494" alt="">
</div>
<div id="index-mysportbikemods3-10">
<img src="images/index_mysportbikemods3_10.jpg" width="435" height="472" alt="">
</div>
<div id="index-mysportbikemods3-11">
<img src="images/index_mysportbikemods3_11.gif" width="30" height="494" alt="">
</div>
<div id="index-mysportbikemods3-12">
<img src="images/index_mysportbikemods3_12.gif" width="107" height="22" alt="">
</div>
<div id="index-mysportbikemods3-13">
<img src="images/index_mysportbikemods3_13.gif" width="435" height="22" alt="">
</div>
</div>
<!-- End Save for Web Slices -->
</body>
</html>
This is what I all did
1) I had a website designed in photoshop
2) I then sliced it up into images
3) I used "save for web and devices"
4) In photoshop settings i generated css for my slices
5) I opened everything up in dreamweaver, it looks like how it is suppose to
6) I then try centering, and NOTHING will work.
Can anyone please take a look at my code and tell me what I got to do in order to center my entire website? I've been searching for hours and hours looking for an answer :(
<html>
<head>
<title>index_mysportbikemods</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Save for Web Styles (index_mysportbikemods.psd) -->
<style type="text/css">
<!--
#Table_01 {
position:absolute;
left:0px;
top:0px;
width:600px;
height:800px;
}
#index-mysportbikemods3-01 {
position:absolute;
left:0px;
top:0px;
width:600px;
height:178px;
}
#index-mysportbikemods3-02 {
position:absolute;
left:0px;
top:178px;
width:105px;
height:128px;
}
#index-mysportbikemods3-03 {
position:absolute;
left:105px;
top:178px;
width:135px;
height:128px;
}
#index-mysportbikemods3-04 {
position:absolute;
left:240px;
top:178px;
width:99px;
height:128px;
}
#index-mysportbikemods3-05 {
position:absolute;
left:339px;
top:178px;
width:126px;
height:128px;
}
#index-mysportbikemods3-06 {
position:absolute;
left:465px;
top:178px;
width:135px;
height:128px;
}
#index-mysportbikemods3-07 {
position:absolute;
left:0px;
top:306px;
width:16px;
height:494px;
}
#index-mysportbikemods3-08 {
position:absolute;
left:16px;
top:306px;
width:107px;
height:472px;
}
#index-mysportbikemods3-09 {
position:absolute;
left:123px;
top:306px;
width:12px;
height:494px;
}
#index-mysportbikemods3-10 {
position:absolute;
left:135px;
top:306px;
width:435px;
height:472px;
}
#index-mysportbikemods3-11 {
position:absolute;
left:570px;
top:306px;
width:30px;
height:494px;
}
#index-mysportbikemods3-12 {
position:absolute;
left:16px;
top:778px;
width:107px;
height:22px;
}
#index-mysportbikemods3-13 {
position:absolute;
left:135px;
top:778px;
width:435px;
height:22px;
}
-->
</style>
<!-- End Save for Web Styles -->
</head>
<body style="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- Save for Web Slices (index_mysportbikemods.psd) -->
<div id="Table_01">
<div id="index-mysportbikemods3-01">
<img src="images/index_mysportbikemods3_01.gif" width="600" height="178" alt="">
</div>
<div id="index-mysportbikemods3-02">
<img src="images/index_mysportbikemods3_02.gif" width="105" height="128" alt="">
</div>
<div id="index-mysportbikemods3-03">
<img src="images/index_mysportbikemods3_03.gif" width="135" height="128" alt="">
</div>
<div id="index-mysportbikemods3-04">
<img src="images/index_mysportbikemods3_04.gif" width="99" height="128" alt="">
</div>
<div id="index-mysportbikemods3-05">
<img src="images/index_mysportbikemods3_05.gif" width="126" height="128" alt="">
</div>
<div id="index-mysportbikemods3-06">
<img src="images/index_mysportbikemods3_06.gif" width="135" height="128" alt="">
</div>
<div id="index-mysportbikemods3-07">
<img src="images/index_mysportbikemods3_07.gif" width="16" height="494" alt="">
</div>
<div id="index-mysportbikemods3-08">
<img src="images/index_mysportbikemods3_08.jpg" width="107" height="472" alt="">
</div>
<div id="index-mysportbikemods3-09">
<img src="images/index_mysportbikemods3_09.gif" width="12" height="494" alt="">
</div>
<div id="index-mysportbikemods3-10">
<img src="images/index_mysportbikemods3_10.jpg" width="435" height="472" alt="">
</div>
<div id="index-mysportbikemods3-11">
<img src="images/index_mysportbikemods3_11.gif" width="30" height="494" alt="">
</div>
<div id="index-mysportbikemods3-12">
<img src="images/index_mysportbikemods3_12.gif" width="107" height="22" alt="">
</div>
<div id="index-mysportbikemods3-13">
<img src="images/index_mysportbikemods3_13.gif" width="435" height="22" alt="">
</div>
</div>
<!-- End Save for Web Slices -->
</body>
</html>