Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subclass not working on IE 2

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hi guys,

I have this :

Code:
#container {

}

    #container a {

    
    }
    
    #container a.iscurpage {
    
    font-weight: bold;
    
    }    



<div id="container">

    <a href="">-----</a>
    <a href="">-----</a>
    <a href="" class="iscurpage">-----</a>
    <a href="">-----</a>
    <a href="">-----</a>

</div>

The iscurpage link is bold on Firefox but not in IE.

What's going on??

Thanks ;)
 
Change your links to include some text rather than just hyphens and you'll see it actually is bold:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
  <head>
    <title>Test Environment</title>
    <style type="text/css">
     #container a.iscurpage {font-weight: bold;}
    </style>
  </head>
  <body>
    <div id="container">
      <a href="">Test 1</a>
      <a href="">Test 2</a>
      <a href="" class="iscurpage">Test 3</a>
      <a href="">Test 4</a>
      <a href="">Test 5</a>
    </div>
  </body>
</html>


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Sorry for sounding harsh, but what you say is pure nonsense.
Links can be made of whatever characters we want.

Anyway, my links are already normal links, and it still doesn't work.
 
Sorry for sounding harsh, but what you say is pure nonsense.
Did you even bother to try my example before calling it "nonsense"? If you had you would have seen what I saw. For example, why does the following look bold when the text says "Test 3" but it doesn't when exactly the same class is applied but the text says "-----"?

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
  <head>
    <title>Test Environment</title>
    <style type="text/css">

     #container a.iscurpage {font-weight: bold;}

    </style>
  </head>
  <body>
    <div id="container">

      <a href="">Test 1</a>
      <a href="">Test 2</a>
      <a href="" class="iscurpage">Test 3</a>
      <a href="">Test 4</a>
      <a href="">Test 5</a>

      <a href="">-----</a>
      <a href="">-----</a>
      <a href="" class="iscurpage">-----</a>
      <a href="">-----</a>
      <a href="">-----</a>

    </div>
  </body>
</html>


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
There's a misunderstanding here chaps.
ca8msm advised you that your hyphens do not appear bold even though they are. He was pointing out that it would be clearer if you viewed text during the development stage.

Keith
 
Well, I'm very sorry for the confusion.

Also, I forgot to write that I had "font-weight: normal" in #container. So it's now clear that, on IE, the bold state doesn't replace the normal state.

I had to remove the normal weight and it works now.

Sorry again :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top