|
newseed -> RE: web site off center (7/7/2008 6:39:55 AM)
|
It's going to depend on you. I can provide a clean standard code that will center your page regardless of screen/resolution size but are you going to do everything using FP's WYSIWYG editor? If so, then the code I was to give you will probably be useless because it will end up getting messed up again. WYSIWYG is discouraged these days due to many different kinds browsers which many of those are not becoming standard compliant thus one must learn how to code correctly so that it meets W3.org standards. Even then, in some cases, you will have to use some coding techniques to help fix certains issues so that your site's pages render perfectly. CSS will help style everything for you thus keeping your HTML code very clean and consistant. With CSS, you can take this part of your code: quote:
<p align="center"> <DIV style="position:absolute;left:433px;top:523px;width:575px;height:25px;z-index:2" align="left"> <B> <FONT style="font-size:21px" color="#C0C0C0" face="Arial Narrow"> <a style="color: #C0C0C0" href="index.htm">HOME</a> <a style="color: #C0C0C0" href="Galleries.htm">GALLERIES</a> <a style="color: #C0C0C0" href="page2.html">ABOUT</a> <a style="color: #C0C0C0" href="page3.html">CONTACT</a></FONT><FONT style="font-size:21px" color="#C0C0C0" face="Arial"> <A href="./page3.html"><span style="text-decoration: none"> </span></A> </FONT></B></DIV> ...and turn it into this.... quote:
<DIV id="menu"> <a href="index.htm">HOME</a> <a href="Galleries.htm">GALLERIES</a> <a href="page2.html">ABOUT</a> <a href="page3.html">CONTACT</a> </DIV> All the styles that was within the HTML are now moved to a CSS file that links to it. See CSS styles: quote:
#menu {text-align: center;} #menu a {font-size:21px; color:#C0C0C0; font-family:"Arial Narrow";} #menu a:hover {text-decoration: none;} FrontPage does not do this automatically which is why you need to learn HTML and CSS. Expression Web is an upgrade to FP which has far better support in coding web pages and CSS but it still helps to know the basic of HTML and CSS because no html editor can do it perfectly or correctly. Now if you decide that you don't have the time or patience to learn HTML and CSS, then I suggest you use tables to place all your contents in and center that table. Still, you are going to have issues because of the many different browsers and screen resolutions types.
|
|
|
|