This is the end result:



Ok, so lets get started!
Table Of Contents:
Step 1: Creating the files
Step 2: Creating the basic html page
Step 3: Creating the basic box layout
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Webbased RPG</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
</body>
</html>
Code: Select all
<!-- Add this code between <body> and </body> in index.htm -->
<h1>Falken MMO</h1>
Code: Select all
<!-- Add this code after the <h1></h1> tags -->
<div id="login_box">
</div>
Code: Select all
body
{
background-color: #024A68; /* Sets the background color to #024A68 (A dark blue color) */
text-align: center; /* Center everything on the page */
margin-top: 50px; /* Put the header 50px from the top */
}
Code: Select all
h1
{
font-family: Helvetica, sans-serif; /* Set the font of the header */
color: #FFFFFF; /* Set the color of the text to white */
}
Code: Select all
#login_box
{
margin: 0 auto; /* This is used to center the layer in the middle of the page */
text-align: left; /* This aligns all text inside the layer to the left, else it would also be centered */
width: 350px; /* Here we simply adjust set how wide the box should be */
background-color: #FFFFFF; /* Set the background color in the layer/box to white */
border: 1px solid black; /* Set the border to be 1 pixel wide and be black */
}
Next part coming up tomorrow hopefullyhallsofvallhalla wrote:wow thanks Falk! Very nice tut. I will make a sticky of all tuts to make them easy to find.
Falken wrote:The next part has been a bit delayed, got a little sick, which also means more catching up at university
But prob I will have it done by start of next week