Thread: silly table question
Results 1 to 7 of 7
Related
-
This Could be a Silly Question Forum: Search Engine Optimization - SEO - Forum
Replies: 1 -
Table Question Forum: HTML Forum
Replies: 7 -
Yet another Table Question Forum: HTML Forum
Replies: 2 -
table question Forum: HTML Forum
Replies: 6 -
Table question Forum: HTML Forum
Replies: 1
-
08-12-2003, 11:07 PM #1
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?)
KGLast edited by Kgaul; 08-13-2003 at 12:03 AM.
-
08-13-2003, 06:36 AM #2
using HTML wrap your selected text in the desired font tags.
#2 can you show me yoir example.
Dave
-
08-13-2003, 07:33 AM #3
Or using CSS
In the head insert
Code:<style> .table {font-color:blurple;} </style>
Code:<table class="table"> <tr><td>Content</td></tr> </table>
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;">
Last edited by Android; 08-13-2003 at 07:53 AM.
-
08-13-2003, 08:59 AM #4
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.
-
08-13-2003, 09:45 AM #5
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%; }
Personally, I prefer to concentrate on the structure and content and get it validated before I move on to styling and decorating it.
-
08-13-2003, 10:28 PM #6
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
-
08-14-2003, 07:27 AM #7
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!
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum