December 17, 201114 yr Please Help me center this website, i know how to do it in the old html but this is different! <!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>So far Web Sliced</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> #Table_01 { position:absolute; left:0px; top:0px; width:1050px; height:850px; } #So-far-Web-Sliced-01 { position:absolute; left:0px; top:0px; width:1050px; height:32px; } #So-far-Web-Sliced-02 { position:absolute; left:0px; top:32px; width:1050px; height:9px; } #So-far-Web-Sliced-03 { position:absolute; left:0px; top:41px; width:611px; height:162px; } #So-far-Web-Sliced-04 { position:absolute; left:611px; top:41px; width:97px; height:98px; } #So-far-Web-Sliced-05 { position:absolute; left:708px; top:41px; width:47px; height:98px; } #So-far-Web-Sliced-06 { position:absolute; left:755px; top:41px; width:98px; height:98px; } #So-far-Web-Sliced-07 { position:absolute; left:853px; top:41px; width:58px; height:98px; } #So-far-Web-Sliced-08 { position:absolute; left:911px; top:41px; width:98px; height:98px; } #So-far-Web-Sliced-09 { position:absolute; left:1009px; top:41px; width:41px; height:98px; } #So-far-Web-Sliced-10 { position:absolute; left:611px; top:139px; width:97px; height:20px; } #So-far-Web-Sliced-11 { position:absolute; left:708px; top:139px; width:47px; height:20px; } #So-far-Web-Sliced-12 { position:absolute; left:755px; top:139px; width:98px; height:20px; } #So-far-Web-Sliced-13 { position:absolute; left:853px; top:139px; width:58px; height:20px; } #So-far-Web-Sliced-14 { position:absolute; left:911px; top:139px; width:98px; height:35px; } #So-far-Web-Sliced-15 { position:absolute; left:1009px; top:139px; width:41px; height:35px; } #So-far-Web-Sliced-16 { position:absolute; left:611px; top:159px; width:300px; height:15px; } #So-far-Web-Sliced-17 { position:absolute; left:611px; top:174px; width:439px; height:29px; } #So-far-Web-Sliced-18 { position:absolute; left:0px; top:203px; width:678px; height:100px; } #So-far-Web-Sliced-19 { position:absolute; left:678px; top:203px; width:99px; height:100px; } #So-far-Web-Sliced-20 { position:absolute; left:777px; top:203px; width:55px; height:100px; } #So-far-Web-Sliced-21 { position:absolute; left:832px; top:203px; width:99px; height:100px; } #So-far-Web-Sliced-22 { position:absolute; left:931px; top:203px; width:119px; height:100px; } #So-far-Web-Sliced-23 { position:absolute; left:0px; top:303px; width:678px; height:31px; } #So-far-Web-Sliced-24 { position:absolute; left:678px; top:303px; width:99px; height:31px; } #So-far-Web-Sliced-25 { position:absolute; left:777px; top:303px; width:55px; height:31px; } #So-far-Web-Sliced-26 { position:absolute; left:832px; top:303px; width:99px; height:31px; } #So-far-Web-Sliced-27 { position:absolute; left:931px; top:303px; width:119px; height:31px; } #So-far-Web-Sliced-28 { position:absolute; left:0px; top:334px; width:303px; height:1px; } #So-far-Web-Sliced-29 { position:absolute; left:303px; top:334px; width:88px; height:516px; } #So-far-Web-Sliced-30 { position:absolute; left:391px; top:334px; width:659px; height:73px; } #So-far-Web-Sliced-31 { position:absolute; left:0px; top:335px; width:73px; height:1px; } #So-far-Web-Sliced-32 { position:absolute; left:73px; top:335px; width:230px; height:85px; } #So-far-Web-Sliced-33 { position:absolute; left:0px; top:336px; width:73px; height:514px; } #So-far-Web-Sliced-34 { position:absolute; left:391px; top:407px; width:618px; height:388px; } #So-far-Web-Sliced-35 { position:absolute; left:1009px; top:407px; width:41px; height:388px; } #So-far-Web-Sliced-36 { position:absolute; left:73px; top:420px; width:230px; height:43px; } #So-far-Web-Sliced-37 { position:absolute; left:73px; top:463px; width:230px; height:48px; } #So-far-Web-Sliced-38 { position:absolute; left:73px; top:511px; width:2px; height:187px; } #So-far-Web-Sliced-39 { position:absolute; left:75px; top:511px; width:228px; height:45px; } #So-far-Web-Sliced-40 { position:absolute; left:75px; top:556px; width:228px; height:48px; } #So-far-Web-Sliced-41 { position:absolute; left:75px; top:604px; width:228px; height:46px; } #So-far-Web-Sliced-42 { position:absolute; left:75px; top:650px; width:228px; height:48px; } #So-far-Web-Sliced-43 { position:absolute; left:73px; top:698px; width:230px; height:47px; } #So-far-Web-Sliced-44 { position:absolute; left:73px; top:745px; width:230px; height:105px; } #So-far-Web-Sliced-45 { position:absolute; left:391px; top:795px; width:659px; height:55px; } --> </style> <!-- End Save for Web Styles --> </head> <body style="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;"> <div id="Table_01"> <div id="So-far-Web-Sliced-01"> <img src="images/So-far-Web-Sliced_01.jpg" width="1050" height="32" alt=""> </div> <div id="So-far-Web-Sliced-02"> <img src="images/So-far-Web-Sliced_02.jpg" width="1050" height="9" alt=""> </div> <div id="So-far-Web-Sliced-03"> <img src="images/So-far-Web-Sliced_03.jpg" width="611" height="162" alt=""> </div> <div id="So-far-Web-Sliced-04"> <img src="images/So-far-Web-Sliced_04.jpg" width="97" height="98" alt=""> </div> <div id="So-far-Web-Sliced-05"> <img src="images/So-far-Web-Sliced_05.jpg" width="47" height="98" alt=""> </div> <div id="So-far-Web-Sliced-06"> <img src="images/So-far-Web-Sliced_06.jpg" width="98" height="98" alt=""> </div> <div id="So-far-Web-Sliced-07"> <img src="images/So-far-Web-Sliced_07.jpg" width="58" height="98" alt=""> </div> <div id="So-far-Web-Sliced-08"> <img src="images/So-far-Web-Sliced_08.jpg" width="98" height="98" alt=""> </div> <div id="So-far-Web-Sliced-09"> <img src="images/So-far-Web-Sliced_09.jpg" width="41" height="98" alt=""> </div> <div id="So-far-Web-Sliced-10"> <img src="images/So-far-Web-Sliced_10.jpg" width="97" height="20" alt=""> </div> <div id="So-far-Web-Sliced-11"> <img src="images/So-far-Web-Sliced_11.jpg" width="47" height="20" alt=""> </div> <div id="So-far-Web-Sliced-12"> <img src="images/So-far-Web-Sliced_12.jpg" width="98" height="20" alt=""> </div> <div id="So-far-Web-Sliced-13"> <img src="images/So-far-Web-Sliced_13.jpg" width="58" height="20" alt=""> </div> <div id="So-far-Web-Sliced-14"> <img src="images/So-far-Web-Sliced_14.jpg" width="98" height="35" alt=""> </div> <div id="So-far-Web-Sliced-15"> <img src="images/So-far-Web-Sliced_15.jpg" width="41" height="35" alt=""> </div> <div id="So-far-Web-Sliced-16"> <img src="images/So-far-Web-Sliced_16.jpg" width="300" height="15" alt=""> </div> <div id="So-far-Web-Sliced-17"> <img src="images/So-far-Web-Sliced_17.jpg" width="439" height="29" alt=""> </div> <div id="So-far-Web-Sliced-18"> <img src="images/So-far-Web-Sliced_18.jpg" width="678" height="100" alt=""> </div> <div id="So-far-Web-Sliced-19"> <img src="images/So-far-Web-Sliced_19.jpg" width="99" height="100" alt=""> </div> <div id="So-far-Web-Sliced-20"> <img src="images/So-far-Web-Sliced_20.jpg" width="55" height="100" alt=""> </div> <div id="So-far-Web-Sliced-21"> <img src="images/So-far-Web-Sliced_21.jpg" width="99" height="100" alt=""> </div> <div id="So-far-Web-Sliced-22"> <img src="images/So-far-Web-Sliced_22.jpg" width="119" height="100" alt=""> </div> <div id="So-far-Web-Sliced-23"> <img src="images/So-far-Web-Sliced_23.jpg" width="678" height="31" alt=""> </div> <div id="So-far-Web-Sliced-24"> <img src="images/So-far-Web-Sliced_24.jpg" width="99" height="31" alt=""> </div> <div id="So-far-Web-Sliced-25"> <img src="images/So-far-Web-Sliced_25.jpg" width="55" height="31" alt=""> </div> <div id="So-far-Web-Sliced-26"> <img src="images/So-far-Web-Sliced_26.jpg" width="99" height="31" alt=""> </div> <div id="So-far-Web-Sliced-27"> <img src="images/So-far-Web-Sliced_27.jpg" width="119" height="31" alt=""> </div> <div id="So-far-Web-Sliced-28"> <img src="images/So-far-Web-Sliced_28.jpg" width="303" height="1" alt=""> </div> <div id="So-far-Web-Sliced-29"> <img src="images/So-far-Web-Sliced_29.jpg" width="88" height="516" alt=""> </div> <div id="So-far-Web-Sliced-30"> <img src="images/So-far-Web-Sliced_30.jpg" width="659" height="73" alt=""> </div> <div id="So-far-Web-Sliced-31"> <img src="images/So-far-Web-Sliced_31.jpg" width="73" height="1" alt=""> </div> <div id="So-far-Web-Sliced-32"> <img src="images/So-far-Web-Sliced_32.jpg" width="230" height="85" alt=""> </div> <div id="So-far-Web-Sliced-33"> <img src="images/So-far-Web-Sliced_33.jpg" width="73" height="514" alt=""> </div> <div id="So-far-Web-Sliced-34"> <img src="images/So-far-Web-Sliced_34.jpg" width="618" height="388" alt=""> </div> <div id="So-far-Web-Sliced-35"> <img src="images/So-far-Web-Sliced_35.png" width="41" height="388" alt=""> </div> <div id="So-far-Web-Sliced-36"> <img src="images/So-far-Web-Sliced_36.jpg" width="230" height="43" alt=""> </div> <div id="So-far-Web-Sliced-37"> <img src="images/So-far-Web-Sliced_37.jpg" width="230" height="48" alt=""> </div> <div id="So-far-Web-Sliced-38"> <img src="images/So-far-Web-Sliced_38.jpg" width="2" height="187" alt=""> </div> <div id="So-far-Web-Sliced-39"> <img src="images/So-far-Web-Sliced_39.jpg" width="228" height="45" alt=""> </div> <div id="So-far-Web-Sliced-40"> <img src="images/So-far-Web-Sliced_40.jpg" width="228" height="48" alt=""> </div> <div id="So-far-Web-Sliced-41"> <img src="images/So-far-Web-Sliced_41.jpg" width="228" height="46" alt=""> </div> <div id="So-far-Web-Sliced-42"> <img src="images/So-far-Web-Sliced_42.jpg" width="228" height="48" alt=""> </div> <div id="So-far-Web-Sliced-43"> <img src="images/So-far-Web-Sliced_43.jpg" width="230" height="47" alt=""> </div> <div id="So-far-Web-Sliced-44"> <img src="images/So-far-Web-Sliced_44.jpg" width="230" height="105" alt=""> </div> <div id="So-far-Web-Sliced-45"> <img src="images/So-far-Web-Sliced_45.jpg" width="659" height="55" alt=""> </div> </div> </body> </html>
December 18, 201114 yr can you link to the webpage if not what sash asked? Looks to me like you are going about things the wrong way. Although you are trying to style with CSS, which is great, it all seems to be very table like and with CSS it shouldn't be. You're loading 45 images as content and you have no text, that is bad practice. I'm guessing you are just cutting up a psd and placing it on the screen? I might be wrong, but the answer to this question will show us; what are you going to put in all the empty alt attributes?
December 18, 201114 yr Author I have simplefied it! So far Web body { background-image:url(images/wood.jpg); background-repeat:repeat; } #Table_01 { position:absolute; left:0px; top:0px; width:1050px; height:850px; } #So-far-Web-01 { position:absolute; left:0px; top:0px; width:591px; height:340px; } #So-far-Web-02 { position:absolute; left:591px; top:0px; width:142px; height:184px; } #So-far-Web-03 { position:absolute; left:733px; top:0px; width:152px; height:184px; } #So-far-Web-04 { position:absolute; left:885px; top:0px; width:165px; height:184px; } #So-far-Web-05 { position:absolute; left:591px; top:184px; width:63px; height:156px; } #So-far-Web-06 { position:absolute; left:654px; top:184px; width:150px; height:156px; } #So-far-Web-07 { position:absolute; left:804px; top:184px; width:152px; height:156px; } #So-far-Web-08 { position:absolute; left:956px; top:184px; width:94px; height:156px; } #So-far-Web-09 { position:absolute; left:0px; top:340px; width:56px; height:510px; } #So-far-Web-10 { position:absolute; left:56px; top:340px; width:263px; height:78px; } #So-far-Web-11 { position:absolute; left:319px; top:340px; width:731px; height:510px; } #So-far-Web-12 { position:absolute; left:56px; top:418px; width:263px; height:44px; } #So-far-Web-13 { position:absolute; left:56px; top:462px; width:263px; height:48px; } #So-far-Web-14 { position:absolute; left:56px; top:510px; width:263px; height:44px; } #So-far-Web-15 { position:absolute; left:56px; top:554px; width:263px; height:48px; } #So-far-Web-16 { position:absolute; left:56px; top:602px; width:263px; height:47px; } #So-far-Web-17 { position:absolute; left:56px; top:649px; width:263px; height:48px; } #So-far-Web-18 { position:absolute; left:56px; top:697px; width:263px; height:47px; } #So-far-Web-19 { position:absolute; left:56px; top:744px; width:263px; height:106px; } [img=images/So-far-Web_01.png] [img=images/So-far-Web_02.png] [img=images/So-far-Web_03.png] [img=images/So-far-Web_04.png] [img=images/So-far-Web_05.png] [img=images/So-far-Web_06.png] [img=images/So-far-Web_07.png] [img=images/So-far-Web_08.png] [img=images/So-far-Web_09.png] [img=images/So-far-Web_10.png] [img=images/So-far-Web_11.png] [img=images/So-far-Web_12.png] [img=images/So-far-Web_13.png] [img=images/So-far-Web_14.png] [img=images/So-far-Web_15.png] [img=images/So-far-Web_16.png] [img=images/So-far-Web_17.png] [img=images/So-far-Web_18.png] [img=images/So-far-Web_19.png]
December 18, 201114 yr Not the best use of CSS etc in the world but I have the following suggestion if I get you right - you just want to centre it? #Table_01 { /*position:absolute; left:0px; top:0px;*/ width:1050px; height:850px; margin:auto; } There might also be a bug thing were you might need to add 'text-align:center' to 'body' for some browsers
December 18, 201114 yr I would also suggest setting the width to no more than 1024px but for this I would recommend approx 980px
December 18, 201114 yr You are trying to load up too many images, a lot of them images could be and should be replaced like the navigation text. Any image that is not content and is just for the look and feel of the site should be called in the CSS.
December 19, 201114 yr read some tutorials on converting psd to xhtml here here u can see how psd files are made Edited December 19, 201114 yr by sash_oo7
Create an account or sign in to comment