50 users online (1 members and 49 guests)  


  Results 1 to 3 of 3

Related

  1. Rotating Text/Quotes Script?    Forum: Javascript Forum
    Replies: 96
  2. Replies: 1
  3. Perl Script Text Output? (w3c validator)    Forum: CGI Perl Forum
    Replies: 0
  4. change html-text with a js-function    Forum: Javascript Forum
    Replies: 1
  1. #1
    boodehunter's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2010
    Posts
    2

    Smile Need html text script help

    Hello guys.

    ok heres what i got
    HTML Code:
    <table width="825" border="0" cellspacing="0" cellpadding="0" height="700">
    <tr background="box 1.jpg">
    <td><center><font size="+10"><font color="white">Welcome</font></font></center></td>
    </tr>
    </table>
    the script wroks fine. the problem i am having is i need to change text type and position the text anywhere i want on the table. i have tried do do alotta different tags but dont know how to put them all together and make em work. if someone could fix this script for the text to position anywhere i want on the table and if you want go all out and throw alotta stuff in it for the text..and i will use it as a comparison for building the rest of my site. Also i need to be able to move the whole table anywhere i want also.Thank you
    Last edited by HTML; 03-09-2012 at 08:38 AM. Reason: forgot something

  2. #2
    boodehunter's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2010
    Posts
    2

    Re: Need html text script help

    ok guys i got it..sry..but here to anyone who might have the same prob heres how i fixed it.

    HTML Code:
    <table width="825" border="0" cellspacing="0" cellpadding="0" height="700">
    <tr background="box 1.jpg">
    <td><font size="+10"><font color="white" style="position: absolute; top: 12px; left: 12px;">Welcome</font></font></td>
    </tr>
    </table>
    Last edited by HTML; 03-09-2012 at 08:39 AM.

  3. #3
    Yesideez's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2010
    Location
    Devon, UK
    Posts
    8

    Re: Need html text script help

    You want to try and learn CSS a bit more - a lot of what you've typed is obsolete - you're learning stuff that is out of date.

    Place this in the HEAD pasrt:
    Code:
    <style type="text/css">
    table.nice {
      width: 825px;
      border: none;
      border-spacing: 0px;
    }
    table.nice tr {
      background-image: url('box 1.jpg');
    }
    table.nice td.titlebit {
      color: #fff;
      position: absolute;
      top: 12px;
      left: 12px;
    }
    </style>
    This is your HTML:
    Code:
    <table>
      <tr><td style="titlebit">Welcome</td></tr>
    </table>
    How much easier is that to read now?