You are viewing our Forum Archives. To view or take place in current topics click here.
Basics Of HTML Coding And CSS StyleSheet
Posted:
Basics Of HTML Coding And CSS StyleSheetPosted:
Status: Offline
Joined: Oct 12, 200915Year Member
Posts: 3,791
Reputation Power: 276
Status: Offline
Joined: Oct 12, 200915Year Member
Posts: 3,791
Reputation Power: 276
HTML is coding where as you can make your own website by just using codes:
Some things about HTML:
It is not case sensitive.
etc,
The Basic HTML Layout
Headings
Headings come in 6 different sizes, number 1 being the largest, and number 6 being the smallest.
Sections / Division.
This is what splits the page up, inside the coding of <div> you will have bits that will make up a certain section / divison
As you can see, the section 'heading' which is the top/header, has the image called ' title' on it.
these are some other division codes.
Paragraphs
The paragraph would go inside the codes.
Here is my CSS sytlesheet for my HTML
Thanks, Daz
Some things about HTML:
It is not case sensitive.
etc,
The Basic HTML Layout
Headings
[b][/b]
[b][/b]
[b][/b]
[b][/b]
[b][/b]
[b][/b]
Headings come in 6 different sizes, number 1 being the largest, and number 6 being the smallest.
Sections / Division.
This is what splits the page up, inside the coding of <div> you will have bits that will make up a certain section / divison
[img]images/Title.jpg[/img]
As you can see, the section 'heading' which is the top/header, has the image called ' title' on it.
these are some other division codes.
Paragraphs
' Paragraph here
The paragraph would go inside the codes.
Here is my CSS sytlesheet for my HTML
* {
margin: 0 0 0 0;
padding: 0 0 0 0 }
body {
color: #80FF80;
background-color: #000000 }
h1{
font-family:helvetica, tahoma, verdana, arial,serif;
font-style:normal;
font-weight:normal;
font-size:16pt;
text-align: center }
#main {
width: 1000px;
height: 400px;
margin: 0 auto 0 auto;
background-color: #006600 }
#left {
width: 400px;
height: 400px;
float: left;
background-color: #006600 }
#right {
width: 600px;
height: 400px;
float: right;
background-color: #006600 }
p {
font-family:helvetica, tahoma, verdana, arial,serif;
font-style:normal;
font-weight:normal;
font-size:11pt;
text-align: left;
text-indent:1em;
margin: 4px 30px 4px 30px }
#heading { width: 1000px;
margin: 0 auto 0 auto;
background-color: #006600 }
address {
font-family:helvetica, tahoma, verdana, arial,serif;
font-style:normal;
font-weight:normal;
font-size:8pt;
text-align: center }
Thanks, Daz
#2. Posted:
Status: Offline
Joined: Apr 24, 201014Year Member
Posts: 5,102
Reputation Power: 405
Status: Offline
Joined: Apr 24, 201014Year Member
Posts: 5,102
Reputation Power: 405
Nice copy and paste????
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Oct 12, 200915Year Member
Posts: 3,791
Reputation Power: 276
Status: Offline
Joined: Oct 12, 200915Year Member
Posts: 3,791
Reputation Power: 276
i got it off my site ill link you if you like??
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 2,684
Reputation Power: 122
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 2,684
Reputation Power: 122
Fail. Half of the code didn't even show up. Also, you didn't even cover the <html>, <head> or <body> tags. Finally, you just dumped a load of css and didnt explain any of it. No offence but this will help nobody.
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Jul 07, 201014Year Member
Posts: 3,165
Reputation Power: 128
Status: Offline
Joined: Jul 07, 201014Year Member
Posts: 3,165
Reputation Power: 128
Nice,
20 charrssssss
20 charrssssss
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Jul 10, 201014Year Member
Posts: 2,099
Reputation Power: 83
Status: Offline
Joined: Jul 10, 201014Year Member
Posts: 2,099
Reputation Power: 83
nice copy and pastttreeeeee
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Jul 03, 201014Year Member
Posts: 666
Reputation Power: 27
**** YOU BENDER!! YOU COPYED MINE FROM GOLDEN MODZ ! REMOVE THIS NOW ! :@
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Jul 09, 201014Year Member
Posts: 1,800
Reputation Power: 67
That looks like some of the coding that i use when i was making my game, this is what i had to make (i know that this is not the same coding style, but it looks like it?):
//Moving around
var speed = 3.0;
var rotateSpeed = 3.0;
//Shooting
var bullitPrefab:Transform;
//Dying
private var dead = false;
//Getting hit
var tumbleSpeed = 800;
var decreaseTime = 0.01;
var decayTime = 0.01;
static var gotHit = false;
private var backup = [tumbleSpeed, decreaseTime, decreaseTime];
function LateUpdate()
{
if(dead)
{
transform.position = Vector3(0,3,0);
gameObject.Find("Main Camera").transform.position = Vector3(0,4,-10);
dead = false;
}
if(gotHit)
{
if(tumbleSpeed < 1)
{
//we're not hit anymore... reset & get back up in the game!
tumbleSpeed = backup[0];
decreaseTime = backup[1];
decayTime = backup[2];
gotHit = false;
}
else
{
//we're hit! Spin our caracter around
transform.Rotate(0, tumbleSpeed * Time.deltaTime,0, Space.World);
tumbleSpeed = tumbleSpeed-decreaseTime;
decreaseTime += decayTime;
}
}
}
function OnControllerColliderHit(hit : ControllerColliderHit)
{
if(hit.gameObject.tag == "fallout")
{
dead = true;
//substract life here
HealthControl.LIVES -= 1;
}
if(hit.gameObject.tag == "enemyProtectile")
{
gotHit = true;
}
}
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
if(Input.GetButtonDown("Jump"))
{
var bullit = Instantiate(bullitPrefab, GameObject.Find("spawnPoint").transform.position, Quaternion.identity);
bullit.rigidbody.AddForce(transform.forward * 2000);
}
}
@script RequireComponent(CharacterController)
//Moving around
var speed = 3.0;
var rotateSpeed = 3.0;
//Shooting
var bullitPrefab:Transform;
//Dying
private var dead = false;
//Getting hit
var tumbleSpeed = 800;
var decreaseTime = 0.01;
var decayTime = 0.01;
static var gotHit = false;
private var backup = [tumbleSpeed, decreaseTime, decreaseTime];
function LateUpdate()
{
if(dead)
{
transform.position = Vector3(0,3,0);
gameObject.Find("Main Camera").transform.position = Vector3(0,4,-10);
dead = false;
}
if(gotHit)
{
if(tumbleSpeed < 1)
{
//we're not hit anymore... reset & get back up in the game!
tumbleSpeed = backup[0];
decreaseTime = backup[1];
decayTime = backup[2];
gotHit = false;
}
else
{
//we're hit! Spin our caracter around
transform.Rotate(0, tumbleSpeed * Time.deltaTime,0, Space.World);
tumbleSpeed = tumbleSpeed-decreaseTime;
decreaseTime += decayTime;
}
}
}
function OnControllerColliderHit(hit : ControllerColliderHit)
{
if(hit.gameObject.tag == "fallout")
{
dead = true;
//substract life here
HealthControl.LIVES -= 1;
}
if(hit.gameObject.tag == "enemyProtectile")
{
gotHit = true;
}
}
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
if(Input.GetButtonDown("Jump"))
{
var bullit = Instantiate(bullitPrefab, GameObject.Find("spawnPoint").transform.position, Quaternion.identity);
bullit.rigidbody.AddForce(transform.forward * 2000);
}
}
@script RequireComponent(CharacterController)
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Feb 19, 201014Year Member
Posts: 7,053
Reputation Power: 487
Status: Offline
Joined: Feb 19, 201014Year Member
Posts: 7,053
Reputation Power: 487
Nice but I still cant figure this out :d
- 0useful
- 0not useful
#10. Posted:
Status: Offline
Joined: Jul 09, 201014Year Member
Posts: 1,800
Reputation Power: 67
Olliefaheed wrote Nice but I still cant figure this out :d
Its all simple! Looks hard and it can be but you can get used to it . I spent a year learning game coding so i know alot about it.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.