...

View Full Version : Need a little help shouldn't be to hard for an expert, or probaly a novice.



ChampionMark
05-18-2005, 04:20 AM
Okay this is my text here for the website, I just started the website, and am not excellent at scripting yet. I'm using a few websites to teach me. And am Learning as I add to the site.

Another question. How do you make lines, width and length. (And if you can add an example for color, and spacing.)
I set the questions next to the text I need help with.

<html>
<body bgcolor="black" text="#ff99cc">
<head>
<h2 align="Center">Welcome</h2>
<P>
<h3 align="center">to</h3>
<P>

I can't figure out how to center this text below
<font face="Lucida Blackletter" font size="32" color="#FF99CC">The Pink Killerz</>
<p>

Same with this text below.
<a href="http://www.geocities.com/thepinkkillerz/TPK.html"><align="center"><input type="Button" value="Click Here to enter the website"</a>
<body>

</html>

Alex Vincent
05-18-2005, 05:38 AM
Mark, I think you meant to post in the HTML/CSS forum instead. Your question seems better suited in that forum. I'll transfer you over there. :)

But if you really did mean XML or XHTML, please say so in the thread. I'm sure one of the HTML moderators will be glad to send this thread back if it's warranted. :thumbsup:

_Aerospace_Eng_
05-18-2005, 06:45 AM
If I understand you correctly, by reading the text you have you just want things centered? First you have to understand the basic layout of a webpage.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>
The above code is the basic layout. All html goes in between the body tags. CSS(cascading style sheet) goes in between the head tags, along with almost all javascript, unless you are using document.writes in which the body would be the proper place to put them. I strongly advise that you try to learn CSS, seeing as how many web designers are shifting to CSS layouts. The font tags you are using are deprecated and shouldn't be used anymore. They might not even be part of HTML in the future, but because of the amount of sites on the net that use them, browsers will more than likely support the font tag. Here is the code you have provided, I cleaned it up a bit, and made it valid coding. Learn from it, it will help in the future. As far as making lines, widths and lengths, can you elaborate on this please?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Index</title>
<style type="text/css">
<!--
body {
background-color:#000000;
color:#FF99CC;
}
.centered {
text-align:center;
}
#killerz {
font-family:"Lucida Blackletter",Verdana, Arial, Helvetica, sans-serif;
font-size:36px;
}
-->
</style>
</head>
<body>
<h2 class="centered">Welcome</h2>
<h3 class="centered">to</h3>
<p class="centered">I can't figure out how to center this text below<br>
<span id="killerz">The Pink Killerz</span>
</p>
<p class="centered">Same with this text below.<br><br>
<input type="button" onclick="window.location='http://www.geocities.com/thepinkkillerz/TPK.html';" value="Click Here to enter the website">
</p>
</body>
</html>
A good place to learn HTML is www.w3schools.com and www.htmldog.com

ChampionMark
05-18-2005, 10:59 AM
This kind of line, I don't know if you can paste websites, but I wont. So here is a simple demonstration.

-------------------------------------------------------------------

^ Like that but with thickness and a color. And how to space it on my page.

Now that exact line but in a vertical version.

This doesn't really matter, but it reminds of the exact same form of programming used for emulating Ultima Online in the sphere versions. Think it was like basic c or something.

Thanks though for pointing me in the right direction, learning html might of had been a waste of my time.

_Aerospace_Eng_
05-18-2005, 11:04 AM
Where exactly would you want that line? It can be done in CSS using the CSS border properties.

mark87
05-19-2005, 04:05 PM
If you wanted a line like that under every paragraph (P tag) you could do something like this -

p { border-bottom: 1px dashed #000 }

Or if you didn't want it after every paragraph, just wanted it in certain places - could use a tag you would use for it - like a heading tag for instance -

h6 { border-bottom: 1px dashed #000 }

Then whenever you want the line to go add in -

<h6></h6>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum