Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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>

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,460
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.

    Code:
    <!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?

    Code:
    <!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

  • #4
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by ChampionMark; 05-18-2005 at 10:03 AM.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Where exactly would you want that line? It can be done in CSS using the CSS border properties.

  • #6
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •