The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Colors do not appear correctly, dark blue appears green on a white background
adsouza
post Mar 2 2014, 11:30 PM
Post #1





Group: Members
Posts: 2
Joined: 2-March 14
Member No.: 20,455



No matter what color code I use it does not represent the correct color. I have even created a new blank page but my banner #0000FF turns out lite green. I have rewritten just about every facet of my CSS with no change. Any suggestions? It is driving me mad. Everything else on my three websites work fine. sad.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Mar 2 2014, 11:57 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



No way to tell if you don't show us the page or code.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
adsouza
post Mar 3 2014, 12:01 AM
Post #3





Group: Members
Posts: 2
Joined: 2-March 14
Member No.: 20,455



QUOTE(jimlongo @ Mar 2 2014, 11:57 PM) *

No way to tell if you don't show us the page or code.



Here's the snippet of code:

<div align="center" valign="middle" style="font-family: arapey, tahoma, arial, courier new; font-size: 400%;">
<bgcolor="#FFFFFF"><font color="#0000FF;">
<i><strong>The Society of Esseans International</strong></i>
</font></font>
</div>

Does this help?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Mar 3 2014, 12:11 AM
Post #4


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



Not really, by itself this works fine, but there must be something else causing the problem.
Do you have a URL or all the rest of the code?

This post has been edited by jimlongo: Mar 3 2014, 12:13 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 3 2014, 08:02 AM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



If it isn't yet another HTML5 addition I have missed there is no element BGCOLOR. That's why it doesn't work. It doesn't exist.

BGCOLOR is an old and deprecated attribute that can be used with BODY and table elements. Today we use CSS instead and it can be used with any element.
http://htmlhelp.com/reference/css/color-background/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Mar 3 2014, 08:45 AM
Post #6


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Beside other inconsistencies in the snippet, the FONT tag is deprecated too, already in HTML 4.
And for the record, the #0000FF is a this blue color.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Mar 3 2014, 01:46 PM
Post #7


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



Funny, you're right that 0000FF should be blue, but when I put the OPs code in an editor and display it the font is actually 3EFF00

Oops, I guess that's what the misplaced semicolon in the FONT COLOR will do.

This post has been edited by jimlongo: Mar 3 2014, 01:47 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 3 2014, 03:33 PM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Because of the semicolon probably. '#0000FF;' isn't a proper HTML color value. I guess you get a funny color for the same reason you would with any other seventh character.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th April 2024 - 01:27 AM