41 users online (0 members and 41 guests)  


  Results 1 to 7 of 7

Related

  1. This Could be a Silly Question    Forum: Search Engine Optimization - SEO - Forum
    Replies: 1
  2. Table Question    Forum: HTML Forum
    Replies: 7
  3. Yet another Table Question    Forum: HTML Forum
    Replies: 2
  4. table question    Forum: HTML Forum
    Replies: 6
  5. Table question    Forum: HTML Forum
    Replies: 1
  1. #1
    Kgaul's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    3

    silly table question

    Hello everyone!

    I am writing my frst website, and ran into a little snag. How do i format my tables to have a different font color then my body?

    My only other question is this. i know how to "fix" the background so it doesn't move with my text, but can you make the boarder table do the same? or maybe overlay another .jpg over the first for the boarder behind the Table? (was that even clear?)
    KG
    Last edited by Kgaul; 08-13-2003 at 12:03 AM.

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    using HTML wrap your selected text in the desired font tags.

    #2 can you show me yoir example.

    Dave

  3. #3
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440

    Or using CSS

    In the head insert
    Code:
    <style>
    .table {font-color:blurple;}
    </style>
    and for the table use
    Code:
    <table class="table">
    <tr><td>Content</td></tr>
    </table>
    It' another way to do it.
    If you have more than one table, you can change the class of that table by setting (or not setting) the class for that table.
    If you plan on having many pages, you could alternatively call for it from an external style sheet, then it could be changed just once and affect the entire site.

    For the second question, I might have to see some code as well, but if you use something like
    Code:
    <body style="border-width:15px;border-color:#ff0000;">
    Does that get you the sort of effect you want? You can easily alter widths, and colour .

    Last edited by Android; 08-13-2003 at 07:53 AM.

  4. #4
    Kgaul's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    3
    ok here is my code, Pleae rember i'm very new to this. I am also mostly testing with this page...
    Coding is very fun. i want to learn much more about it...

    Code


    <html>
    <head>

    <style type="text/css">

    .table {font-color:red; }

    h1 {color: blue; margin-left: -8%; font-size: 500%; }
    h2 {color: aqua; margin-left: -4%; font-size: 300%; }
    h3 {color: silver; font-size: 200%;}
    h4 {color: white; font-size: 150%; }
    body {color:silver; }
    p { text-indent: 2em; margin-top: 0; margin-bottom: 0; }
    link { color: rbg(0, 0, 153) } /* for unvisited links */
    visited { color: rbg(153, 0, 153) } /* for visited links */
    active { color: rbg(255, 0, 102) } /* when link is clicked */
    hover { color: rbg(0, 96, 255) } /* when mouse is over link */

    </style>
    <title> Table information =P
    </title>
    </head>

    <body background="red139.jpg" bgcolor="#c0c0c0" bgproperties="fixed" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
    <table width="15%" class=table height=1600 align=left background="marb125.jpg" >
    <tr>
    <td><h4> <ul>
    <li>home </li>
    <li>forum</li>
    <li>Gm's </li>
    </ul></h4></td>
    </tr>
    </table>

    <p>
    <h1 align=center>
    header1 </h1>
    <h2 align=center>
    <i> header2 </i> </h2><br>


    <p><h4>Texth4></p> <br>
    <p><h4>Text</h4></p><br>
    <p><h4>Text4></p> <br>
    <h1>!!! Site still under Construction!!! </h1> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>
    <P> </p> <br>



    <p align=center>You are visitor number
    <IMG ALIGN=center SRC="http://counter.digits.com/wc/-d/4/somethingorother"
    WIDTH=60 HEIGHT=20 BORDER=1 HSPACE=4 VSPACE=2>Powered by:
    <a href="http://www.digits.com"> <br>
    <img src='wc-01.gif' align= center alt= 'our friends'> </a>
    </P>

    </body>

    </html>



    What i want to do is create a permanate fixed background behind my 15% table align left. And change my font color inside my table...


    Code:--------------------------------------------------------------------------------
    <style>
    .table {font-color:red;}
    </style>
    --------------------------------------------------------------------------------


    Code:--------------------------------------------------------------------------------
    <table class="table">
    <tr><td>Content</td></tr>
    </table>
    --------------------------------------------------------------------------------

    nothing happened when i put this into my code i'm quite sure i didn't do it correctly. maybe i need to read more on html.

    KG

    PS thank you for a place like this, and for looking over my code.

  5. #5
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440

    Whoa!

    Looks like you might have some tinkering to do before you go about decorating it!
    Why are you doing this?
    Code:
    h1 {color: blue; margin-left: -8%; font-size: 500%; }
    h2 {color: aqua; margin-left: -4%; font-size: 300%; }
    h3 {color: silver; font-size: 200%;}
    h4 {color: white; font-size: 150%; }
    and encasing header tags within UL's, (as well as not closing some of them), and placing headers within paragraph tags is going to create more problems that will HAVE to be fixed, not to mention the 'table height of 1600'. 1600 what?
    Personally, I prefer to concentrate on the structure and content and get it validated before I move on to styling and decorating it.

  6. #6
    Kgaul's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    3
    I'm using a Validator which i have learned alot about. the headers were only a quick format fix...

    this is my first page and i'm just testing ideas and learning what does what....

    thank you for looking over my code (if you can call it that). i was wondering about locking the table jpg to the background so it doesn't move... i always seem to tackle the hard stuff first then learn the other stuff...

    thanks for your comments android,

    KG

  7. #7
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440
    Actually, I seem to be the same way.
    Webdesign is one thing I've found that forces me to be patient and finish one thing at a time before I move onto the next step.
    Good luck, and be sure to ask questions!



Tags for this Thread