HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
I need some help
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
-jason



Joined: 27 Jan 2006
Posts: 2

PostPosted: Fri Jan 27, 2006 9:37 am     I need some help Reply with quote

i am not that good with html for webpages and that stuff, but does anyone know a code on how to make a page's colour black and white, making no colour visible except the 2 shades

and thanks Smile
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Fri Jan 27, 2006 10:35 am     Reply with quote

I would use CSS to apply the colors.
Code:
<style type="text/css">
body
{
   margin:0px auto;
   font-family: Verdana, Helvetica, Arial, sans-serif;
   font-size: 1.0em;
   background: #fff;
   color: #000;
}
</style>
if you have hyperlinks, you would need to add pseudo classes as well so that it would be
Code:
<style type="text/css">
body
{
   margin:0px auto;
   font-family: Verdana, Helvetica, Arial, sans-serif;
   font-size: 1.0em;
   background: #fff;
   color: #000;
}
a:link
{
   color: #000;
   background: #fff;
}
a:visited
{
   color: #000;
   background: #fff;
   text-decoration: none;
}
a:hover
{
   color: #000;
   background: #fff;
}
a:active
{
   text-decoration: none;
   color: #000;
   background: #fff;
}
</style>
This style sheet goes into the head of your HTML document.

You could also put everything into the opening <body> tag but using CSS would be better.

_________________
Corey
Loud Commerce | LoudHost | Toll Free Solutions
-jason



Joined: 27 Jan 2006
Posts: 2

PostPosted: Fri Jan 27, 2006 10:46 am     Reply with quote

it doesnt seem to be working for this website i use Sad
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Fri Jan 27, 2006 10:52 am     Reply with quote

Unfortunately, without seieing what you have done it is difficult to help. You will need to provide either the entire source code or URL to the page.

_________________
Corey
Loud Commerce | LoudHost | Toll Free Solutions
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial