Frontend Development

HTML Help needed

Submitted by Niko, , Thread ID: 12769

Thread Closed
15-11-2015, 06:15 AM
This post was last modified: 15-11-2015, 06:15 AM by Niko
#1
Okay so i am making a firwall page for my website but i am a beginner in HTML. I want to center it in the middle of the page on x and y axis. Here is my current code
Code:
<!DOCTYPE html>
<html>
<body background="mybb/images/bg.png" bgcolor="#333333">

<font face="verdana" color="white"><center><h1>Welcome to LightForums!</h1></center></font>
<font face="verdana" color="white"><center><p>You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</p></center></font>
<center><IMG SRC="mybb/images/load2.gif"></center>

</body>
</html>
I have made many google searches but cannot find anything! Thanks

RE: HTML Help needed

#2
15-11-2015, 06:15 AM
Niko Wrote:
Okay so i am making a firwall page for my website but i am a beginner in HTML. I want to center it in the middle of the page on x and y axis. Here is my current code
Code:
<!DOCTYPE html>
<html>
<body background="mybb/images/bg.png" bgcolor="#333333">

<font face="verdana" color="white"><center><h1>Welcome to LightForums!</h1></center></font>
<font face="verdana" color="white"><center><p>You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</p></center></font>
<center><IMG SRC="mybb/images/load2.gif"></center>

</body>
</html>
I have made many google searches but cannot find anything! Thanks

Try this

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="mybb/images/load2.gif" /></center>
</body>
</html>

RE: HTML Help needed

OP
#3
15-11-2015, 06:35 AM
Sexual Wrote:
15-11-2015, 06:15 AM
Niko Wrote:
Okay so i am making a firwall page for my website but i am a beginner in HTML. I want to center it in the middle of the page on x and y axis. Here is my current code
Code:
<!DOCTYPE html>
<html>
<body background="mybb/images/bg.png" bgcolor="#333333">

<font face="verdana" color="white"><center><h1>Welcome to LightForums!</h1></center></font>
<font face="verdana" color="white"><center><p>You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</p></center></font>
<center><IMG SRC="mybb/images/load2.gif"></center>

</body>
</html>
I have made many google searches but cannot find anything! Thanks

Try this

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="mybb/images/load2.gif" /></center>
</body>
</html>
It worked but it seems a teeny bit too lowhttp://i.imgur.com/ggDLljs.png

RE: HTML Help needed

#4
15-11-2015, 06:42 AM
Niko Wrote:
15-11-2015, 06:35 AM
Sexual Wrote:
15-11-2015, 06:15 AM
Niko Wrote:
Okay so i am making a firwall page for my website but i am a beginner in HTML. I want to center it in the middle of the page on x and y axis. Here is my current code
Code:
<!DOCTYPE html>
<html>
<body background="mybb/images/bg.png" bgcolor="#333333">

<font face="verdana" color="white"><center><h1>Welcome to LightForums!</h1></center></font>
<font face="verdana" color="white"><center><p>You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</p></center></font>
<center><IMG SRC="mybb/images/load2.gif"></center>

</body>
</html>
I have made many google searches but cannot find anything! Thanks

Try this

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="mybb/images/load2.gif" /></center>
</body>
</html>
It worked but it seems a teeny bit too lowhttp://i.imgur.com/ggDLljs.png

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="http://i.imgur.com/ekzBYEZ.gif" /></center>
</body>
</html>

RE: HTML Help needed

OP
#5
15-11-2015, 06:48 AM
Sexual Wrote:
15-11-2015, 06:42 AM
Niko Wrote:
15-11-2015, 06:35 AM
Sexual Wrote:
15-11-2015, 06:15 AM
Niko Wrote:
Okay so i am making a firwall page for my website but i am a beginner in HTML. I want to center it in the middle of the page on x and y axis. Here is my current code
Code:
<!DOCTYPE html>
<html>
<body background="mybb/images/bg.png" bgcolor="#333333">

<font face="verdana" color="white"><center><h1>Welcome to LightForums!</h1></center></font>
<font face="verdana" color="white"><center><p>You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</p></center></font>
<center><IMG SRC="mybb/images/load2.gif"></center>

</body>
</html>
I have made many google searches but cannot find anything! Thanks

Try this

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="mybb/images/load2.gif" /></center>
</body>
</html>
It worked but it seems a teeny bit too lowhttp://i.imgur.com/ggDLljs.png

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="http://i.imgur.com/ekzBYEZ.gif" /></center>
</body>
</html>

Thanks so much Smile

RE: HTML Help needed

#6
15-11-2015, 06:53 AM
Niko Wrote:
15-11-2015, 06:48 AM
Sexual Wrote:
15-11-2015, 06:42 AM
Niko Wrote:
15-11-2015, 06:35 AM
Sexual Wrote:
15-11-2015, 06:15 AM
Niko Wrote:
Okay so i am making a firwall page for my website but i am a beginner in HTML. I want to center it in the middle of the page on x and y axis. Here is my current code
Code:
<!DOCTYPE html>
<html>
<body background="mybb/images/bg.png" bgcolor="#333333">

<font face="verdana" color="white"><center><h1>Welcome to LightForums!</h1></center></font>
<font face="verdana" color="white"><center><p>You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</p></center></font>
<center><IMG SRC="mybb/images/load2.gif"></center>

</body>
</html>
I have made many google searches but cannot find anything! Thanks

Try this

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="mybb/images/load2.gif" /></center>
</body>
</html>
It worked but it seems a teeny bit too lowhttp://i.imgur.com/ggDLljs.png

Code:
<!DOCTYPE html>
<html>
<title>Please Wait...</title>
<body background="mybb/images/bg.png" bgcolor="#333333">
<center>
<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1>&nbsp;</h1>

<h1><font color="white" face="verdana">Welcome to LightForums!</font></h1>
</center>

<center>
<p><font color="white" face="verdana">You have hit our FireWall, this process may take a few moments. Please be patient so we can insure your security!</font></p>
</center>

<center><img src="http://i.imgur.com/ekzBYEZ.gif" /></center>
</body>
</html>

Thanks so much Smile

No problem, PM me.

RE: HTML Help needed

This post was last modified: 15-11-2015, 09:03 AM by Brent
#7
Has this been fixed? If so are you happy with the way that its been done?

RE: HTML Help needed

OP
#8
15-11-2015, 09:03 AM
Brent Wrote:
Has this been fixed? If so are you happy with the way that its been done?

Yes i am. It was not a big thing and i am fairly new but learning fast. All i wanted was a simple firewall HTML and that is exactly what i recieved

RE: HTML Help needed

#9
A easy way to center anything is by using <center> Infront of the actual code you want centered.

Users browsing this thread: 4 Guest(s)