Solved

A:visited Css Safari not working

Posted on 2007-12-04
4
1,881 Views
Last Modified: 2008-02-01
Hi

Im having some trouble getting my navigation and <a> tags to render properly in safari, after clicking the active state breaks the design, but i can seem to get the css right to hit it, im sure its really simple but i just cant get it.

1. If you click on a main nav link it goes bolder and this happens on all buttons until it breaks the nav.

2. If you click on the sub nav on the right it styles the links when i want them to stay in the a:link state.

The details ore in the attached CSS

Before i post the whole site it would be great if you could have a look over my css and see if there are any obvious mistakes!!

Many thanks

--s--


/*---------------MAIN NAV MENU--------------------*/
#nav {
	clear:both;
	margin:0;
	padding:0;
	height:30px;
	background:#333333;
/*	border-bottom:#FFFFFF solid 1px;
*/
}
 
#nav ul {
	margin:0;
	padding:0;
	list-style:none;
	float:left;
}
 
#nav ul li {
	float:left;
}
 
 
#nav a, #nav a:visited, #nav a:active  {
	text-align:center;
	font-size:12px;
	display:block;
	float:left;
	height:30px;
	padding:0 14px 0 14px;
	line-height:30px;
	text-decoration:none;
	color:#FFFFFF;
	background:#333333;
	border-left:#FFFFFF solid 1px;
	font-weight:normal;
}
 
#nav #m_1 .m_1 a, 
#nav #m_2 .m_2 a, 
#nav #m_3 .m_3 a, 
#nav #m_4 .m_4 a,
#nav #m_5 .m_5 a, 
#nav #m_6 .m_6 a,
#nav #m_7 .m_7 a, 
#nav #m_8 .m_8 a,  
#nav #m_9 .m_9 a {
	color:#FFFFFF;
	background:#660066;
	font-weight:normal;
}
 
 
#nav a:hover  {
	color:#FFFFFF;
	background:#660066;
	font-weight:normal;
}
 
 
 
/* Styles */
p, pre {
	font-size:0.8em;
	font-family: Arial, Helvetica, sans-serif;
	color: #333333;
	margin-bottom:6px;
	text-align:justify;
	
}
 
.cl {clear: both; font-size: 0.1px; line-height: 0.1px;}
 
ul{font-size:0.8em; margin-left:23px; color:#2C1A10;}
h1 {font-size:1.2em; margin-bottom:12px;}
 
a:link, a:visited {color:#660066; text-decoration:underline; font-weight:normal;}
a:hover {color:#660066; text-decoration:none; font-weight:normal;}
a:active {color:#660066; text-decoration:underline; font-weight:normal;}
 
strong {color:#333333;}

Open in new window

0
Comment
Question by:socross
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 30

Accepted Solution

by:
Steggs earned 500 total points
ID: 20405426
you should specily link states in this order

Link
Visited
Hover
Active

a:link {stuff}
a:visited {stuff}
a:hover {stuff}
a:active {stuff}
0
 
LVL 1

Author Comment

by:socross
ID: 20408161

I have tried to apply that rule to the basic link,visited, hover and active css but it still wont work.

Would there be anthing else that would get in the way, would the above navigation css posted in the original question get in the way.

??

--s--
0
 
LVL 1

Author Comment

by:socross
ID: 20410594
have put a version online at

http://clients.fruit-studios.com/example

Click on all the main nav links and you will see it break.

Then visit the residential page and click on the sub nav you will see that the visited status stays there.

Any suggestions

--s--
0
 
LVL 1

Author Comment

by:socross
ID: 20410636
umm well just upload this testing version to my own testing server above and it worksfine - very confused??

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Overflow: auto does not stretch with position: absolute 3 40
Fix a css menu for width 15 39
TypeError jquery issues with site - CSS conflicts 3 44
How does this modal work? 3 33
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question