Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Newbie needs simple code help to center something
Old 05-14-2006, 07:08 PM Newbie needs simple code help to center something
Novice Talker

Posts: 14
Location: Missouri
Trades: 0
Hi, I am not real experienced in writing code and I could use a little help. I feel this is simple but I don't know how to "center" something for a friend.

The page is located at :


http://www.cancer-solutions.net/order.html

If you go there, what I am trying to center is this:

The Original Ojibwa Herbal Tea...
down to the e-gold image.

You'll know what I mean if you go there.

If you can help me, please view source and copy and paste the part of the code with the needed changes so it will be centered under the "Herbal Products" banner.

You can either email me directly or leave the message here. Thanks so much!
spiritlady is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-14-2006, 07:29 PM Re: Newbie needs simple code help to center something
Defies a Status

Posts: 1,606
Trades: 0
You had your table layout messed up. I added two more tables at the top to get everthing to line up. I did this with FrontPage so be sure to make a backup of you file in case it does not work. Copy the code from here to notepad and then to your editor to remove any formatting.

HTML Code:
<html>
<HEAD>
<TITLE>The Original Ojibwa Herbal Tea formula,Calling of an Angel,Cancer-Solutions</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
</HEAD>
<BODY background="things/othpgbkgW.gif" width="100" height="100" bgcolor="#FFF1E8" border="0" 
text="#000000" link="#006633" vlink="#003399">
<table border="1" width="100%">
<tr>
<td width="16%" bgcolor="#006633"><a href="index.html" target="_top"><img src="things/logo3.gif" 
width="102" height="36" name="logo" border="0" alt="Cancer Solutions"></a></td>
<td width="84%" bgcolor="#006633">
<h3 align="center"><font color="#FFF1E8" face="Verdana, Arial, Helvetica, sans-serif">H
e r b a l&nbsp; P r o d u c t s </font></h3>
</td>
</tr>
</table>
<table border="1" width="100%">
<tr>
<td width="100%"> 
<h3 align="center"><b>THE ORIGINAL OJIBWA HERBAL TEA FORMULA</b></h3>
<h4 align="center">Three-Month Supply : $ 340.00 </h4>
<div align=center>
<p align="center"><img src="things/ccw.gif" width="59" height="36" border=0 alt="Credit 
Cards/PayPal"> 
<a href="#" onClick="window.open('https://www.paypal.com/cart/add=1&business=RobertKing%40irishnation.com&item_name=Herbal+Tea&item_number=001&amount=350.00&image_url=http%3A//www.cancer-solutions.net/things/cslogo.gif&return=http%3A//www.cancer-solutions.net/thankyou.html&cancel_return=http%3A//www.cancer-solutions.net/nopay.html','cartwin','width=600,height=400,scrollbars,location,resizable,status');"> 
<img src="things/cart.gif" border="0" alt="Add to Cart"></a>
 
</div>
<p align="center">
<!-- Enter Amount of this Item and press purchase button:<br> --><!-- US Dollar worth of e-gold --><input type="image" value="submit" border="0" src="things/egoldlogo.gif" 
alt="E-Gold Purchase" name="PAYMENT_METHOD2"> 
<p>&nbsp;</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="713" name="order" align="left">
<tr> 
<td align="left" width="520"> 
</td>
 
</tr>
<tr> 
<td bgcolor="#006633" colspan="2" align="center" height="17" width="680"> 
<h4><font color="#FFF1E8" face="Verdana, Arial, Helvetica, sans-serif">Shipping 
and handling is calculated through the shopping cart</font></h4>
<h4><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFF1E8">E-Gold 
purchase : no shipping and handling charges !</font></h4></td></tr>
<tr><td colspan="2" align="center" height="20" width="680"> 
<h4><b><font face="Verdana, Arial, Helvetica, sans-serif">Postage : Second 
day shipping</font></b></h4></td></tr>
<tr><td colspan="2" align="center" height="68" width="680"> 
<h3>Or may use : Cashier's Check , Money Order , Bank Draft payable to :<br>
Robert King </h3>
<h3>Mail your payment : </h3></td></tr>
<tr><td valign="middle" align="center" width="520"> 
<h3>For the <img src="things/usflag.gif" width="68" height="36" align="middle" alt="US Flag" border="0" name="USFlag">United 
States</h3>
</td>
<td valign="middle" align="center" width="189"> 
<h3>For the <img src="things/isle_of_man.gif" border="0" width="68" height="36" alt="Isle of Man Flag" align="middle" name="UKFlag">United 
Kingdom</h3>
</td>
 
</tr>
<tr> 
<td valign="middle" align="center" width="520"> 
<h4>If interested in paying this way,<br>
please email me for the address. <br>
<a href="mailto:robert@cancer-solutions.net">robert@cancer-solutions.net</a></h4>
</td>
<td width="189" valign="middle" colspan="" align="center"> 
<h4>To : Robert King<br>
Kings End<br> Ballaragh Rd. Laxey,<br>
ISLE of MAN IM4 7PH<br>
<a href="mailto:robert@cancer-solutions.net">robert@cancer-solutions.net</a></h4>
</td>
 
</tr>
<tr> 
<td colspan="2" align="center" width="680"> 
<p><b>Please include your e-mail address along with your order</b></p>
<h2>Phone : 1-417-429-0810</h2>
</td>
</tr>
<tr > 
<td colspan="2" align="center" bgcolor="#006633" width="680"> 
<h3><font color="#FFF1E8" face="Verdana, Arial, Helvetica, sans-serif">Dealers, 
Physicians, Practitioners, Inquirers Welcome !</font></h3>
</td>
 
</tr>
<tr> 
<td colspan="2" align="center" width="680"> 
<p>Flags courtesy of <a href="http://www.theodora.com/ita.html">ITA</a>'s 
<a href="http://www.theodora.com/flags">Flags of All Countries</a> used 
with permission. </p></td></tr>
</table>
</BODY>
</HTML>
If you want to do it yourself using tables put the Title line in one table, the part you wanted to center in another and the balance of the copy in a third table.

You may need to add a few spaces to the title part to get it centered over the body.

Since at least one person is going to post that this is not the right way to do layouts I mention it now.

I also always try to answer the question asked and not preach while doing it.

Best wishes.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 05-14-2006, 08:33 PM Re: Newbie needs simple code help to center something
Novice Talker

Posts: 14
Location: Missouri
Trades: 0
Thanks for the quick info. Actually, I didn't write this code, I just edited it for my friend who owns the site. He doesn't know a thing about this and doesn't want to and he lost contact with the original code writer. This did seem to work, But I don't use an editor. I usually write by hand and I don't write much. I just know enough to make a plain fairly functioning website. That is kind of why I am here to learn a little bit more. I am not in the web design business, but every business owner needs a website so unless you have the dough to pay someone, you better learn somewhere.
spiritlady is offline
Reply With Quote
View Public Profile
 
Old 05-14-2006, 08:44 PM Re: Newbie needs simple code help to center something
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
That's why I'm self-taught in html and php.... I'm a cheapskate!


__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-14-2006, 09:18 PM Re: Newbie needs simple code help to center something
Defies a Status

Posts: 1,606
Trades: 0
Quote:
Originally Posted by spiritlady
Thanks for the quick info. Actually, I didn't write this code, I just edited it for my friend who owns the site. He doesn't know a thing about this and doesn't want to and he lost contact with the original code writer. This did seem to work, But I don't use an editor. I usually write by hand and I don't write much. I just know enough to make a plain fairly functioning website. That is kind of why I am here to learn a little bit more. I am not in the web design business, but every business owner needs a website so unless you have the dough to pay someone, you better learn somewhere.
If you take the curse off by pasting the code to notepad you should have the full page. I copied the complete source code, reworked it and posted it back to you. Saving as filename.html htm or php is all you should have to do.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Newbie needs simple code help to center something
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23603 seconds with 12 queries