CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 1st, 2004, 09:52 AM
Fosco Sandybank Fosco Sandybank is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Europa
Posts: 21 Fosco Sandybank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS Link Background

To start with, here's a block of code:

my style.css

Code:
.main { 
	font-family: Verdana, Arial, Helvetica, sans-serif;
 	font-size: 11pt;
 	color: #FFFFFF;
 	background-color: #666666;
 	text-align: center;
 	vertical-align: top;
 	border: #000000; } 

a.main:link  {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #FFFFFF;
  text-decoration: none;
  background-color: #666666; }

a.main:visited { 
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #FFFFFF;
  text-decoration: none;
  background-color: #666666; } 

a.main:hover {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #FF8A00;
  text-decoration: underline overline line-through;
 background-color: #666666;} 

a.main:active {  
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #FF6F00;
  text-decoration: blink;
  background-color: #666666; }


my html-file's thingies:

Code:
 <div id="Main" style="position:absolute; width:50%; z-index:5; left: 25%; top:
 25%; background-color: #333333;
 layer-background-color: #333333;
 border: 3px none #000000;" class="main">


And the problem:
With Windows XP /w IE and Linux /w Opera I get the same stupid looking detail - the backgrounds of the links are different from the div's background. So that the dark grey part is broken by the links and their light grey boxes. Looks horrific..

By the way, is there a good place for language references for CSS, PHP and HTML in the internet (URL)?

Reply With Quote
  #2  
Old February 1st, 2004, 07:24 PM
magma's Avatar
magma magma is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Italy, EU
Posts: 517 magma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 45 m 8 sec
Reputation Power: 6
You've defined your anchor tags as background-color: #666666 and set the DIV's background-color to #333333... so they ARE different!!
Set your anchors' background-color to #666666

Take a look at the follwing sites:
CSS level 2
PHP
HTML

Hope this helps!
__________________
Cheers, Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Link Background


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway