Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS rendered different in Firefox and IE

Reply
Thread Tools

CSS rendered different in Firefox and IE

 
 
markymark
Guest
Posts: n/a
 
      09-02-2006
Hi,

I'm using CSS to control linking styles on this page.

http://timothydahl.com/unity/about.htm

In IE6 it looks fine but in Firefox 1.5 the links along the right nav
don't show hover and start out in a color that I didn't specify. I can
only think it's picking up something from my bottom nav but IE views it
the way I want.

Any thoughts on getting better control of my linking styles here?

Thanks,
Mark
 
Reply With Quote
 
 
 
 
markymark
Guest
Posts: n/a
 
      09-02-2006
markymark wrote:
> Hi,
>
> I'm using CSS to control linking styles on this page.
>
> http://timothydahl.com/unity/about.htm
>
> In IE6 it looks fine but in Firefox 1.5 the links along the right nav
> don't show hover and start out in a color that I didn't specify. I can
> only think it's picking up something from my bottom nav but IE views it
> the way I want.
>
> Any thoughts on getting better control of my linking styles here?
>
> Thanks,
> Mark


I just realized it's only external links that are looking strange. Why???
 
Reply With Quote
 
 
 
 
markymark
Guest
Posts: n/a
 
      09-02-2006
markymark wrote:
> markymark wrote:
>
>> Hi,
>>
>> I'm using CSS to control linking styles on this page.
>>
>> http://timothydahl.com/unity/about.htm
>>
>> In IE6 it looks fine but in Firefox 1.5 the links along the right nav
>> don't show hover and start out in a color that I didn't specify. I
>> can only think it's picking up something from my bottom nav but IE
>> views it the way I want.
>>
>> Any thoughts on getting better control of my linking styles here?
>>
>> Thanks,
>> Mark

>
>
> I just realized it's only external links that are looking strange. Why???



IE is now also screwy. My CSS looks like this.

a:link {
text-decoration:none;
color:#000000
}

a:hover {
color:#999999
}

a:visited{
text-decoration:none;
color:#000000
}

..topnav a {
text-decoration:none;
font-size:12px;
}

..topnav a:link {
color:#000000;
font-size:12px;
}

..topnav a:visited {
color:#000000;
font-size:12px;
}

..topnav a:hover {
color:#cccccc;
font-size:12px;
}


..bottomnav A:link, A:visited, A:active {
font:Verdana, Arial, Helvetica, sans-serif;
color:#CCCCCC;
text-decoration:none;
font-size:9px;
}

..bottomnav a:hover {
color: #6F707F;
}

 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      09-02-2006
markymark wrote:

> http://timothydahl.com/unity/about.htm
>
> In IE6 it looks fine but in Firefox 1.5 the links along the right nav
> don't show hover and start out in a color that I didn't specify.


I think you'll find that it is *visited* links that don't hover. You defined
the :visited selector after the :hover selectors and they have equal
specificity.

You also have a stack of syntax errors:
http://validator.w3.org/check?verbos...ty%2Fabout.htm

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Ed Jay
Guest
Posts: n/a
 
      09-02-2006
markymark scribed:

>markymark wrote:
>> markymark wrote:
>>
>>> Hi,
>>>
>>> I'm using CSS to control linking styles on this page.
>>>
>>> http://timothydahl.com/unity/about.htm
>>>
>>> In IE6 it looks fine but in Firefox 1.5 the links along the right nav
>>> don't show hover and start out in a color that I didn't specify. I
>>> can only think it's picking up something from my bottom nav but IE
>>> views it the way I want.
>>>
>>> Any thoughts on getting better control of my linking styles here?
>>>
>>> Thanks,
>>> Mark

>>
>>
>> I just realized it's only external links that are looking strange. Why???

>
>
>IE is now also screwy. My CSS looks like this.
>
>a:link {
> text-decoration:none;
> color:#000000
> }
>
>a:hover {
> color:#999999
> }
>

It looks OK in Opera. Have you considered putting a semicolon after the
#999999?
--
Ed Jay (remove 'M' to respond by email)
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      09-02-2006
Ed Jay wrote:
> markymark scribed:

<snip>


>> a:hover {
>> color:#999999
>> }
>>

> It looks OK in Opera. Have you considered putting a semicolon after the
> #999999?


It is not required for the *last* statements, however I like to add it
anyway so that if at a latter time I add another statement to the rule
the ';' is already there. If missed it can cause an error that you can
waste a bit of time trying to locate.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gap rendered in Firefox 3 but not in IE 7 Tarscher HTML 12 06-15-2008 10:32 PM
Re: using css in html embedded in xml rendered using xsl with javascript (phew) confused XML 3 05-28-2007 11:55 AM
using css in html embedded in xml rendered using xsl with javascript (phew) confused XML 3 05-25-2007 11:06 PM
Textbox Width Issue (Rendered differently for different browsers) Jeff ASP .Net 2 12-17-2005 04:56 PM
Firefox and <body onload=.. > firing after page is rendered usenet@ctoxyeb.com Javascript 3 08-16-2005 10:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57