We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Html Problem
Topic Started: Apr 15 2005, 07:31 AM (456 Views)
Gimliisadwarf
Member Avatar
Member
[ * ]
I just started with html a few days ago and i have a slight problem. If you were to view this page as regular internet page you would get the code just above the whole html document at the bottom. I wanted this code to be all the way at the top just i dont know what is wrong. When i had finally got it at the top i had one small one on top and one big one on the bottom.. i just want one big one at the top.
Help.. Please.

Other tips that might improve this page are also most welcome

Code:
 
<table cellspacing="5" cellpadding="4">
<tr>
<th style="background-color: #003300; border: #008800 1px solid;">Help</th>
</tr>

Code:
 
<html>
<title>Nicks KOC</title>
<head>

<meta name="description" content=This is a page that specializes in koc.
There is a guide to koc sevaral tips and much much more">
<meta name="keywords" content="Koc Gimli Dwarf sabbotage guide learn html alliances cosmos arcane archers">
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" text="#FFFFFF">
<center>

<table cellspacing="5" cellpadding="4">
<tr>
<th style="background-color: #003300; border: #008800 1px solid;">Help</th>
</tr>


<br>
<br>
<br>
<br>
<br>
<MARQUEE bgcolor="black" loop="-1" scrollamount="8" width="100%">Welcome to Gimli's Koc Page</MARQUEE>

<br>
<br>

<center><a href="http://www.kingsofchaos.com/recruit.php?uniqid=37i3w43q"><img src="http://img.photobucket.com/albums/v423/skazamo/gimli2.gif"></a></center>

<br>
<br>

<center><a href="http://www.freewebs.com/gimli_koc/koc-.html">Enter Here</a></center>
</body>
</html>
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Gimliisadwarf
April 15, 2005 12:31 PM
Code:
 
<table cellspacing="5" cellpadding="4">
<tr>
<th style="background-color: #003300; border: #008800 1px solid;">Help</th>
</tr>

Change it to:
Code:
 
<table cellspacing="5" cellpadding="4">
<tr>
<th style="background-color: #003300; border: #008800 1px solid;">Help</th>
</tr>
</table>

Should do it.
(You have to end the table :yes: )

And, you have
Code:
 
<br>
<br>
<br>
<br>

in there.
Put a
Code:
 
 
in front of every
Code:
 
<br>
to make sure it works in all browsers.
(Assuming you want an open rule at those places)
Offline Profile Quote Post Goto Top
 
Gimliisadwarf
Member Avatar
Member
[ * ]
Thanks allot. lol stupid me didnt even see that
Offline Profile Quote Post Goto Top
 
j mckalling
Member
[ *  * ]
Was this the answer to your question? Because I spotted taht you also didn't closed the table of the second code. Just a comment! :/
Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
Also, I'd advise learning CSS in addition to HTML and to not using <br> tags unless you have to. They make for messy code.
Offline Profile Quote Post Goto Top
 
Gimliisadwarf
Member Avatar
Member
[ * ]
yea this answered my question. thanks allot for the advise i am learning php now but i will certainly learn CSS when i have time for it
Offline Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
You should also not use tables for layout. That's not what they are meant for. Use DIVs instead. You should be learning CSS along with (X)HTML and you shouldn't really start on PHP until you got HTML and CSS down since most of the output from your PHP scripts is written in (X)HTML. Don't rush things.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply