Page 1 of 1

Can someone help me with my website?

PostPosted: Sun Jan 02, 2005 11:59 am
by Tidus20
A:visited { text-decoration: none; color:"#00FFFF"; }
A:hover { text-decoration:none; color:"#000000"; cursor: crosshair;}

body {
scrollbar-arrow-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #FFFFFF;
scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #FFFFFF;

-->

</style>

</head>

<p>Welcome to Ah'm on tv!, my very own gir fansite! started:1/1/05 finished:</p>

<p><a href="page2.html"><u>enter</u></a></p>

</body>

</html>

Can someone help me get the background black and everything but the underlined word white? It just wont work for me... anyway, thanks.

PostPosted: Sun Jan 02, 2005 1:50 pm
by Mr. SmartyPants
i believe it is

<body bgcolor=black>
<body text=white>

maybe? You can also use the hexidecimal numbers i suppose, but i believe the words work as well

PostPosted: Sun Jan 02, 2005 2:02 pm
by Tidus20
I've got an awesome site that can help out a lot with html. and thanks!

Edit: it still seems to think that it's agood idea for the text to be black too, so nobody can see it... why? this is the edited html:

<html>

<head>

<title>Ah'm on tv!: Teh ultimate gir fansite</title>

<body bgcolor="black" body text"white">

<style>

<!--

BODY,P,TD {font-family:verdana,arial; font-size:11px; text-color:white; bgcolor:black; }

A:link { text-decoration: none; color:"#7FFFD4"; }
A:visited { text-decoration: none; color:"#00FFFF"; }
A:hover { text-decoration:none; color:"#000000"; cursor: crosshair;}

body {
scrollbar-arrow-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #FFFFFF;
scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #FFFFFF;

-->

</style>

</head>

<p>Welcome to Ah'm on tv!, my very own gir fansite! started:1/1/05 finished:</p>

<p><a href="page2.html"><u>enter</u></a></p>

</body>

</html>

PostPosted: Wed Jan 05, 2005 1:20 am
by Kaligraphic
Okay, read through the specs at the World Wide Web Consortium (w3.org).

Your edited html is not valid. You've overlapped the head and the body (a no-no) and left a style block open (again, bad).

Take out the bgcolor and text-color stuff, and put the body tag after you close the head. Then, after the body block in your style section, put the '}'.

Oh, and 'body text"white"' is an invalid way of specifying an html attribute.

The way to do this is to read up on CSS 2(w3.org), and change your style section as follows:

Code: Select all
body    {
        background-color: #000000;
        color: #ffffff;
        (whatever other attributes)
        }

u       {
        color: #00ff00;
        }

that'll set text in u tags to green.

Oh, and I suggest using this format for all CSS - it makes it easier to read. Multiple attributes on the same line are harder to read, so put one per line to make it easy on yourself.

of course, hyperlinks are usually underlined anyway, so why are you using u tags there in the first place?