|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
Centering my website pages
06-19-2005, 06:20 PM
|
Centering my website pages
|
Posts: 371
Location: Ware Shoals SC
|
I want to center my website or put something like is on the left side on the right to make it look like there is not such a gap there.
Take a look for yourself please:
http://www.spywarebeaters.com
See what im saying?
If you need my HTML pages please just ask. I was thinking maybe a [\center> code might work?
|
|
|
|
06-20-2005, 06:05 PM
|
|
Posts: 9
Location: Moscow, Russia
|
yes, <center> will work.
|
|
|
|
06-20-2005, 06:28 PM
|
|
Posts: 1,693
|
Or alternatively if you want to use CSS.. you can use..
HTML Code:
margin:0px auto 0px;
so you would add this to the class for the table or whatever you want to center.
you can then change the first and last values for the margins at the top and bottom aswell. 
|
|
|
|
06-20-2005, 11:35 PM
|
|
Posts: 371
Location: Ware Shoals SC
|
Where would I put it at? Here is my homepage html:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Spyware Beaters Spyware and Computer Support for the New PC User</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<SCRIPT language=JavaScript>
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<LINK href="index.files/styles-3.css" rel=stylesheet type=text/css
tppabs="http://www.templatestyles.com//preview2/004/styles.css">
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0
onload="MM_preloadImages('images/btn_company_over.gif','images/btn_services_over.gif','images/btn_products_over.gif','images/btn_careers_over.gif','images/btn_news_over.gif','images/btn_contact_over.gif')"
text=#000000 topMargin=0 marginheight="0" marginwidth="0">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD width=754>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=754>
<TBODY>
<TR>
<TD><IMG height=126 src="http://img59.echo.cx/img59/3209/sb012qi.png" width=545
tppabs="http://www.templatestyles.com//preview2/004/images/top_01.gif"><BR><IMG
border=0 height=24 src="http://img192.exs.cx/img192/65/top0228gx.gif" useMap=#Map
width=754
tppabs="http://www.templatestyles.com//preview2/004/images/top_02.gif"></TD></TR>
<TR>
<TD><IMG height=20 src="http://img192.exs.cx/img192/1659/top0327jc.gif" width=229
tppabs="http://www.templatestyles.com//preview2/004/images/top_03.gif"><A
href="Downloads.htm"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image4','','images/btn_company_over.gif',1)"><IMG
border=0 height=20 name=Image4 src="http://img133.exs.cx/img133/7890/btncompany0fw.gif"
width=72
tppabs="http://www.templatestyles.com//preview2/004/images/btn_company.gif"></A><A
href="recomended sites.htm"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image5','','images/btn_services_over.gif',1)"><IMG
border=0 height=20 name=Image5 src="http://img31.exs.cx/img31/7605/btnservices2da.gif"
width=71
tppabs="http://www.templatestyles.com//preview2/004/images/btn_services.gif"></A><A
href="Tutorials.htm"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image6','','images/btn_products_over.gif',1)"><IMG
border=0 height=20 name=Image6 src="http://img56.exs.cx/img56/7843/btnproducts7tk.gif"
width=80
tppabs="http://www.templatestyles.com//preview2/004/images/btn_products.gif"></A><A
href="http://s8.invisionfree.com/Spyware_Beaters/index.php?"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image7','','images/btn_careers_over.gif',1)"><IMG
border=0 height=20 name=Image7 src="http://img162.exs.cx/img162/7534/btncareers0dn.gif"
width=66
tppabs="http://www.templatestyles.com//preview2/004/images/btn_careers.gif"></A><A
href="http://s8.invisionfree.com/Spyware_Beaters/index.php?showforum=30"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image8','','images/btn_news_over.gif',1)"><IMG
border=0 height=20 name=Image8 src="http://img173.exs.cx/img173/7889/btnnews29wk.gif"
width=51
tppabs="http://www.templatestyles.com//preview2/004/images/btn_news.gif"></A><A
href="Contact Us.htm"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image9','','images/btn_contact_over.gif',1)"><IMG
border=0 height=20 name=Image9 src="http://img173.exs.cx/img173/2549/btncontact20gl.gif"
width=92
tppabs="http://www.templatestyles.com//preview2/004/images/btn_contact.gif"></A><IMG
height=20 src="http://img192.exs.cx/img192/5940/top048ts.gif" width=93
tppabs="http://www.templatestyles.com//preview2/004/images/top_04.gif"></TD></TR>
<TR>
<TD><IMG height=24 src="http://img216.exs.cx/img216/6729/top059lx.gif" width=754
tppabs="http://www.templatestyles.com//preview2/004/images/top_05.gif"></TD></TR>
<TR>
<TD>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=754>
<TBODY>
<TR>
<TD bgColor=#000066 vAlign=top width=139><IMG height=153
src="http://img107.exs.cx/img107/2265/spywarebeaterslogo4hn8th.gif" width=142
tppabs="http://www.templatestyles.com//preview2/004/images/image_main.gif"></TD>
<TD vAlign=top width=597><IMG height=44
src="http://img192.exs.cx/img192/4984/pageheader6jm.gif" width=597
tppabs="http://www.templatestyles.com//preview2/004/images/page_header.gif"><BR>
<TABLE border=0 cellPadding=0 cellSpacing=10 width=597>
<TBODY>
<TR>
<TD vAlign=top><FONT color=#666666
face="Verdana, Arial, Helvetica, sans-serif"
size=2><B><FONT color=#333333>Just good free support,period!
<BR></FONT></B><FONT color=#333333>.<BR><BR></FONT></FONT><FONT
color=#333333
face="Verdana, Arial, Helvetica, sans-serif"
size=2><b> This site is under construction! I am adding all the new content plus the old as fast as I can.</b><br><a href="http://www.dpbolvw.net/click-1569720-10366379" target="_top" >
<img src="http://www.lduhtrp.net/image-1569720-10366379" width="250" height="250" alt="CallWave Free Trial - Click Here!" border="0"></a><br>
Hijackthis log analysis,computer support,ad-aware support,spyware removal,tutorials,reviews,Calendar of updates,hijackthis
<!-- Begin Code Amber Ticker code. -->
<P ALIGN=CENTER>
<SCRIPT LANGUAGE="JavaScript1.2" src="http://www.codeamber.org/js/codea.js">
</script>
</P>
<!-- end of Code Amber Ticker code (c)Copyright codeamber.org 2002, 2003, 2004-->
<br>
<p>I made this site to help people out on there computer problems. On my website you will find a lot of good information. I try to keep the news as up to date as I possibly can. I am doing most of the work by myself as far as the news goes. I have compiled several computer Tutorials on the website to help you out on different issues. So far I have 17 Tutorials up. They are all filled with great information and picture examples.</p> <p>Feel free to look around at all the pages and see what all my site has to offer so far. If you have any comments,questions or concerns register up on my message board and send me a pm. If you do not want to register now but want to share your feelings go to the guests corner at the bottom. My message board is where it all happenes. There you can post your Hijackthis log for review and fix of the problems we spot in it. There will also be alerts on security updates,news and fun chat between other members. The forums can be found here:<A href="http://s8.invisionfree.com/Spyware_Beaters/index.php?">Spyware Beaters forums</A><br> You can share your knowledge and even gain more along the way. There is no end to the possibilities! Please enjoy your stay and Come on in and see us!</p>
<!-- Site-Flavored Google Search -->
<form method=GET action="http://www.google.com/search">
<table bgcolor=#FFFFFF>
<tr><td>
<a href="http://www.google.com/services/siteflavored.html">
<img src="http://labs.google.com/images/gp/google_kaltix_site_flavored_searchbox.gif" border=0 alt=Google align=absmiddle></a> <input type=text name=q size=31 maxlength=255 value=''>
<input type=hidden name=site_flavored value=on>
<input type=hidden name=client value=site_flavored>
<input type=hidden name=hl value=en>
<input type=hidden name=interests value=65>
<span id=site_flavored_name></span>
<script language=javascript>
homeHTML = "<input type=hidden name=site_flavored_name value=" + document.location +">";
document.getElementById("site_flavored_name").innerHTML = homeHTML;
</script>
<input type=submit name=sa value='Custom Search'>
<font face=arial,sans-serif size=-1><br> </font><br>
</td></tr></table>
</form>
<!-- Site-Flavored Google Search -->
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=644316;
var sc_partition=5;
var sc_security="573b9e81";
</script>
<a href="http://www.prchecker.info/" target="_blank">
<img src="http://www.prchecker.info/PR1_img.gif" alt="Page Rank Checker" border="0"></a>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c6.statcounter.com/counter.php?sc_project=644316&java=0&security=573b9e81" alt="free geoip" border="0"></a> </noscript>
<!-- End of StatCounter Code -->
</FONT><FONT color=#333333
face="Verdana, Arial, Helvetica, sans-serif"
size=2></FONT></TD></TR></TBODY></TABLE></TD>
<TD background=index.files/bg_right.gif vAlign=top
tppabs="http://www.templatestyles.com//preview2/004/images/bg_right.gif"><IMG
height=49 src="http://img177.exs.cx/img177/9586/right0128hu.gif" width=18
tppabs="http://www.templatestyles.com//preview2/004/images/right_01.gif"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top width="100%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD background=index.files/bg_top.gif width="100%"
tppabs="http://www.templatestyles.com//preview2/004/images/bg_top.gif"><IMG
height=300 src="" width=12
tppabs="http://www.templatestyles.com//preview2/004/images/bg_top.gif"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD background=index.files/bg_bottom.gif height=16
tppabs="http://www.templatestyles.com//preview2/004/images/bg_bottom.gif"><IMG
height=16 src="http://img64.exs.cx/img64/6270/bottom0120xj.gif" width=754
tppabs="http://www.templatestyles.com//preview2/004/images/bottom_01.gif"></TD></TR>
<TR>
<TD>
<TABLE border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width=81><IMG height=62 src="http://img70.exs.cx/img70/5334/bottomlogo8bk.gif"
width=81
tppabs="http://www.templatestyles.com//preview2/004/images/logo_bottom.gif"></TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif"
size=1><B><FONT color=#000066><A
href="index.htm">Home</A> <FONT
color=#ff9900>|</FONT> <A
href="recomended sites.htm">Recomended sites</A> <FONT
color=#ff9900>|</FONT> <A
href="http://s8.invisionfree.com/Spyware_Beaters/index.php?">Forums</A> <FONT
color=#ff9900>|</FONT> <A
href="Tutorials.htm">Tutorials</A> <FONT
color=#ff9900>|</FONT> <A
href="http://s8.invisionfree.com/Spyware_Beaters/index.php?showforum=30">News</A> <FONT
color=#ff9900>|</FONT> <A
href="Downloads.htm">Downloads</A> <FONT
color=#ff9900>|</FONT> <A
href="Contact Us.htm">Contact
Us</A></FONT></B><FONT color=#000066><BR><BR>Copyright © 2005 Spyware Beaters.
All rights reserved.
</FONT></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><MAP
name=Map><AREA coords=714,3,746,14
href="spywareb.freecoolsite.com" shape=RECT></MAP></BODY></HTML>
|
|
|
|
06-22-2005, 05:10 PM
|
|
Posts: 1,693
|
You will need to change the main table width so its not 100% and the actual width the table is instead..
HTML Code:
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
Then you can add the css to that...
HTML Code:
<TABLE border=0 cellPadding=0 cellSpacing=0 width="700" style="margin:0px auto 0px;">
|
|
|
|
06-22-2005, 05:14 PM
|
|
Posts: 122
Location: bolton...
|
Quote:
|
Originally Posted by PiterZ
yes, <center> will work.
|
ive found that some browsers dont support the <center> tag
|
|
|
|
06-22-2005, 11:17 PM
|
|
Posts: 371
Location: Ware Shoals SC
|
Thanks so much! Well I hope all the main browsers will!
|
|
|
|
|
« Reply to Centering my website pages
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|