Website question's

General chat area for anything whatsoever

Moderator: Core Staff

Post Reply
User avatar
Xpayne
PC Team
PC Team
Posts: 1751
Joined: May 13th, 2008, 8:17 am
Location: Estonia

Website question's

Post by Xpayne » July 10th, 2012, 4:25 pm

Hello everyone , i start work on my new website and i confused on something here...

i Want to add more table's inside big one that i've created...Here is the code:

<html>
<head>
<title>Xpayne CoDJumper - Welcome </title>
</head>

<body background="images/25.jpg">
<table align="center" border="2" cellspacing="0" bordercolor="#181818" background="images/cjbanner2.jpg" bgcolor="#cccccc" width="800" height="100">
<tr> <font color="333333"> Hello </font></tr>
</table>
<br="0">
<table align="center" border="1" cellspacing="0" bordercolor="#181818" bgcolor="#cccccc" width="1000" height="1000">


<td><top><center><font color="666666"><h2><marquee height="10" width="800" loop="100000">Welcome to Xpayne Home Land! </font></td></tr></br></center></h2>
</marquee>
</table>
</body>
</html>

http://imageshack.us/photo/my-images/411/56452802.jpg/

PS! CJ banner i added for a previous time antil i get my own 1.
I'll take care of checking whether the music is royalty-free or not

Let's save this post.

Image

Uploaded with ImageShack.us

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Website question's

Post by Drofder2004 » July 10th, 2012, 5:26 pm

Sam... stop teaching him bad habits, ffs.
(also, sort out this colour scheme O_o)

If you want to create a table of data, then use a table.
If you want to design your website with a layout, use CSS.

It is incredibly easy to pick up, easiest language I have learned, and it provides a much better flexibility to design.

Code: Select all

<html>
        <head>
                <title>Xpayne CoDJumper - Welcome </title>
                <style type="text/css">
                        body{
                                background-image: url("images/25.jpg");
                        }
 
                        #banner{
                                background: #ccc url("images/cjbanner.jpg") no-repeat;
                                width: 800px;
                                height: 100px;
                                border: 2px solid #181818;
                                margin: 20px auto 0;
                                color: #666;
                        }
 
                        #content{
                                margin: 20px auto;
                                border: 1px solid #181818;
                                background: #ccc;
                                width: 1000px;
                                height: 1000px;
                        }
 
                        #content h2{
                                text-decoration: underline;
                                font-weight: bold;
                                font-size: 1.1em;
                                padding-left: 20px;
                        }
                </style>
        </head>
 
        <body>
                <div id="banner">
                        <em style="padding: 5px;">CoDJumper Banner</em>
                </div>
 
                <div id="content">
                        <h2>Welcome to Xpayne Home Land!</h2>
                </div>
        </body>
</html>
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Re: Website question's

Post by Pedsdude » July 10th, 2012, 7:07 pm

Is <br="0"> any different to simply using <br>? I assume it's the same, and if that's the case, change it ;)

By the way, way back when I first started making webpages, I used this site to learn the basics:
http://www.lissaexplains.com/

Assuming it hasn't worsened, and you can see past the childish theme of the site, it should prove useful.
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Website question's

Post by Drofder2004 » July 10th, 2012, 8:08 pm

Pedsdude wrote:Is <br="0"> any different to simply using <br>?
<br> = html, <br /> = xhtml
"=0" is simply wrong.

Either way, <br> is not meant to be used in layout or design. It is purely a 'line BReak'. You use it to separate lines within text/paragraphs. Because <br> is for text manipulation, some browser setups treat it differently.

Instead, use margins on other elements.

I personally used books ("Missing Manual" series are quite nice), but there are plenty of online information, I just prefer a reference by my side. A good site I just found is "http://www.html.net".

Also, http://www.w3schools.com - W3 dictate the way your browsers udnerstand HTML, they dictate what is right and what is wrong - who better to teach.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Xpayne
PC Team
PC Team
Posts: 1751
Joined: May 13th, 2008, 8:17 am
Location: Estonia

Re: Website question's

Post by Xpayne » July 10th, 2012, 8:18 pm

Ok ill check that
I'll take care of checking whether the music is royalty-free or not

Let's save this post.

Image

Uploaded with ImageShack.us

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Re: Website question's

Post by Pedsdude » July 10th, 2012, 8:30 pm

tizag is also a brilliant website, used them to learn a lot about PHP and mySQL - they have a HTML tutorial but I've not looked at it much: http://www.tizag.com/htmlT/
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests