Jump to content

how to hide link

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
43 replies to this topic

#1
mangama

mangama

    Newbie

  • Members
  • Pip
  • 1 posts
any code to do this ?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Moved to the correct forum.

Can you be more precise as to what you're talking about?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
nullbyte

nullbyte

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 302 posts

mangama said:

any code to do this ?
<style type="text/css">
.invis {
color: white;
}
</style>
<a href="#" class="invis">blabla</a>


#4
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
I don't think that is what he ment. More details please? Something like this.

www.codecall.net

jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
nullbyte's method would work if you had a white background. A better method is to use the display: none CSS propert.

<style type="text/css">
a.hidden
      {
      display: none;
      }
</style>
Then apply the class to a link:

<a href="<URL>" class="hidden" id="myHiddenClass">link</a>
You don't need the ID but if you include it later on you can use JavaScript to unhide the link (if you intend on showing it once a user clicks a button or something).

Edited by Jordan, 28 October 2008 - 05:43 AM.


#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Eh, Jordan, it's display: none, not display: block.

Also note that search engines will still pick it up.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Whoops, typo.

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Lol a fat lot of good that would do mangama.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Lol, it would do just the opposite for him.

#10
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Notice sarcasm in my tone.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#11
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
Is that what display: none; does :eek: I never knew it actually hide it!
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#12
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Yep. It's good for SEO.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums