Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] html conflicts with CSS

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #174337
    misscosmic
    Participant

    This is the code that gives the problem.

    <div class="titlebigger"><a id="anthonym">Anthony Missen</a></div>

    Anthony Missen is seen as being an active link, which it is not. It is only an id (=anthonym) so the link on another page knows to go here.

    Because it is seen as an active link it gets underlined. This is inherited I guess. I don’t want it underlined. When I give it titlebigger{text-decoration: none;} it neglects font size AND is still underlined ..

    What can I do?

    #174338
    blackhiu
    Participant

    u may try this

    a#anthonym {
    text-decoration: none;
    }

    #174339
    misscosmic
    Participant

    wow thanks blackhiu it works!! it’s only a couple of minutes ago that I registered and already got the sollution. Thanks ! Great

    #174342
    Senff
    Participant

    That just removes the underline from the text — it’s still viewed as a link so when you hover your mouse over it, it will change the cursor.

    I think you shouldn’t make it a link in the first place, cause it’s not an actual link. It’s just a placeholder with a specific ID, so why not just do this?

    <div><span id="anthonym">Anthony Missen</span></div>
    
    #174401
    Romchick
    Participant

    if you want to link another page to this use the following:

    <a name=comehere></a><div>Anthony Missen</div>

    then a link from another place will have to be:
    <a href="#comehere">To Anthony Missen</a>

    or

    .titlebigger a {
    text-decoration: none;
    }
    
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.