473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

text decoration none and |Firefox

Doesn't seem to work as I still get an underline. Is there a reason
for this? Is this normal?
You can see examples on my site.

BB
--
www.kruse.co.uk/ se*@kruse.demon.co.uk
seo that watches the river flow...
--
Jul 21 '05 #1
6 14949
Big Bill wrote:
Doesn't seem to work as I still get an underline. Is there a reason
for this?
yes, there is no text-decoration: none; in your style sheet

A:link
{
color: #0033CC;
background-color: #F0F0F0;
font-weight: bold;
}

try:

A:link
{
color: #0033CC;
background-color: #F0F0F0;
font-weight: bold;
text-decoration: none;
}
Is this normal?
You can see examples on my site.

BB
--
www.kruse.co.uk/ se*@kruse.demon.co.uk
seo that watches the river flow...
--

Jul 21 '05 #2
Els
Big Bill wrote:
Doesn't seem to work as I still get an underline. Is there a reason
for this? Is this normal?
You can see examples on my site.


You need to set the text-decoration:none explicitly for the link
itself. If it's on all <h1> and <h2>:
h1 a:link,
h1 a:visited,
h2 a:link,
h2 a:visited{
text-decoration: none;
cursor: text;
color: Black;
}

If there are more <h1> and <h2>s but you only need this effect on
those that you set the span.b1 on, I'd suggest you take out the span,
and place the class="b1" on the <a> element instead.

a.b1:link,
a.b1:visited{
text-decoration: none;
cursor: text;
color: Black;
}

You can see btw, that the current underline is on the <a> and not on
the <span>, as the colour isn't black, but blue :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #3
On Sat, 11 Jun 2005 08:25:08 GMT, -db-
<wi***********************@foo.bar> wrote:
Big Bill wrote:
Doesn't seem to work as I still get an underline. Is there a reason
for this?


yes, there is no text-decoration: none; in your style sheet

A:link
{
color: #0033CC;
background-color: #F0F0F0;
font-weight: bold;
}

try:

A:link
{
color: #0033CC;
background-color: #F0F0F0;
font-weight: bold;
text-decoration: none;
}


It never occurred that no-one would not look past that to

..b1 {
text-decoration: none; cursor: text; color: Black;
}

See, some links are supposed to look like links, and the others
aren't. That's why the two look different. In IE, the ones I don't
want to look like links don't look like links, but in FF they look
like underlined with blue text.

BB

--
www.kruse.co.uk/ se*@kruse.demon.co.uk
seo that watches the river flow...
--
Jul 21 '05 #4
On Sat, 11 Jun 2005 10:27:43 +0200, Els <el*********@tiscali.nl>
wrote:
Big Bill wrote:
Doesn't seem to work as I still get an underline. Is there a reason
for this? Is this normal?
You can see examples on my site.


You need to set the text-decoration:none explicitly for the link
itself. If it's on all <h1> and <h2>:
h1 a:link,
h1 a:visited,
h2 a:link,
h2 a:visited{
text-decoration: none;
cursor: text;
color: Black;
}

If there are more <h1> and <h2>s but you only need this effect on
those that you set the span.b1 on, I'd suggest you take out the span,
and place the class="b1" on the <a> element instead.

a.b1:link,
a.b1:visited{
text-decoration: none;
cursor: text;
color: Black;
}

You can see btw, that the current underline is on the <a> and not on
the <span>, as the colour isn't black, but blue :-)


This gives me much to think on, Els, thank you.

BB
--
www.kruse.co.uk/ se*@kruse.demon.co.uk
seo that watches the river flow...
--
Jul 21 '05 #5
Big Bill wrote:
On Sat, 11 Jun 2005 08:25:08 GMT, -db-
<wi***********************@foo.bar> wrote:
try:

A:link
{
text-decoration: none;
}


It never occurred that no-one would not look past that to

.b1 {
text-decoration: none; cursor: text; color: Black;
}


I believe a:link has higher specificity than .b1

a.b1:link would better guarantee .b1 is applied.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 21 '05 #6
Els
kchayka wrote:
Big Bill wrote:
On Sat, 11 Jun 2005 08:25:08 GMT, -db-
<wi***********************@foo.bar> wrote:
try:

A:link { text-decoration: none; }


It never occurred that no-one would not look past that to

.b1 { text-decoration: none; cursor: text; color: Black; }


I believe a:link has higher specificity than .b1

a.b1:link would better guarantee .b1 is applied.


Only if the class 'b1' would be set on the <a> element ;-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Só Pra Contrariar - O Amor, Voce E Eu (Spc)
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Christian Roth | last post by:
What I want: <p style="text-decoration: line-through"> Stricken <span style="text-decoration: none">not stricken</span> </p> , where "Stricken " should be the only thing that is lined...
2
by: george.leithead | last post by:
Hi all, I have a very strange problem! In following Web page (which is generated from a CMS System), the navigation to the left 'dissapears' when you roll the mouse over the links? It does not...
3
by: John Pote | last post by:
1. Horizontal centering a <divin browser window. The current trend seems to be to place page content in a fixed width area in the middle of the browser window. How is this achieved? If I use a...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
2
by: Francesco Moi | last post by:
Hi. I want to create a link within a H1 text: --- <h1><a href=foo>text</a></h1> --- And I've got (in my CSS) --- h1
7
by: pbd22 | last post by:
Hi. Can somebody tell me how I would go about allowing the user to click on a link to put content in text box A and then another link to put different content in text box A and so on. Finally,...
2
by: GloStix | last post by:
For some reason, FF likes to put a black underline on all my buttons. No matter what I do, it has the line I've tried displaying as block and cursor, anything.. Also I've been trying to get it so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.