HOW DO I CENTER MY WEB PAGES!
-
juneoates1
HOW DO I CENTER MY WEB PAGES!
I am having problems centering my web pages in PhotoImpact XL. I completed the web site tutorial adding the swapping images and slideshow and it looks great but when I saved as html and viewed it - the website was all to the left of the screen. I changed the html code to center the webpage by adding <center> and although this centralised the webpage on the screen, it left behind some of the content i.e. the slideshow, some of the rollover text and the swap image effect!
Is there a way of centralising the web page during the design process or any other way of doing this??
Is there a way of centralising the web page during the design process or any other way of doing this??
-
DomGer
-
juneoates1
RE: Centering Pages of Website - CODE!
I placed the <center> tag after <html> and before <head> and although it worked by centering the whole web page it left out the content of the slideshow and the swap images behind to the left.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<center>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="PhotoImpact">
<META NAME="PhotoImpact Document" CONTENT="C:\Documents and Settings\Mrs Oates\Desktop\PhotoImpact Tutorial\files\web3.ufo">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<center>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="PhotoImpact">
<META NAME="PhotoImpact Document" CONTENT="C:\Documents and Settings\Mrs Oates\Desktop\PhotoImpact Tutorial\files\web3.ufo">
Last edited by juneoates1 on Sun Jun 04, 2006 11:18 am, edited 1 time in total.
-
DomGer
this is what i expected. PI creates not a very good code. The Code you posted ist broken. Please try to post the code only between
...and....
otherweise you can send me the full code per eMail. domger at freenet dot de.
you wrote that the center tag does not bring the result you expected. Did you place the <center> after the body tag, so it´s like this:
and did you place the </center> tag before the </body> tag, so it´s like this:
did you?
gruesse
-DomGer
Code: Select all
<BODY BGCOLOR="#DEDEB2" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">Code: Select all
</html>you wrote that the center tag does not bring the result you expected. Did you place the <center> after the body tag, so it´s like this:
Code: Select all
<BODY BGCOLOR="#DEDEB2" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<center>
<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">Code: Select all
</center>
</body>
</html>gruesse
-DomGer
-
DomGer
-
juneoates1
Positioning Slideshow
Even after altering the html code to reposition my web pages I still find that the slideshow stays in the same position as it seems to be placed there using relative co-ordinates and so it stays in position even after centering everything else!
Last edited by juneoates1 on Sat Jun 24, 2006 11:32 pm, edited 1 time in total.
-
juneoates1
Sorry, I just put the whole code on to look at! I tried putting it where you said but the same keeps happening. I think it's something to do with the fact that when you add the slideshow etc. it adds it in place using absolute placement and even though I can get the website centered the slideshow stuff stays in the previous placement!
Its a pity I cannot find a way of centering the website during the design in PI - I wonder if the updated versions allow you to center the webpage in the design process?
Its a pity I cannot find a way of centering the website during the design in PI - I wonder if the updated versions allow you to center the webpage in the design process?
-
keenart
-
DomGer
