Jump to content

Adding bottom links with click-over feature? Help please!

- - - - -

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

#1
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Hello!

My website which I recently purchased: Samuel the ITtechnician

Needs a lot of work... :lol:

No, but seriously, what I would like to do is add bottom links to the bottom of my header. I want the bottom links to be click-over (like the ones on this site!).

What I need it to look like;

White text, black background

When cursor is put over link, link needs to change to an orange box (or circle or something) with a different coloured text.


Please help me make this work!

Thanks in advance,

Panarchy

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
This is simple enough. Simply use a CSS style to set the a:link and a:visited rules to what you want. Then use a:hover to change the appearance.
CSS Image Rollovers | Design Meme
Jordan said:

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

#3
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Can you help me with the implementation of it?

#4
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Thanks in advance,

Panarchy

#5
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Read the code ın the example, ıt shows you how to do ıt. ;)
Jordan said:

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

#6
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Do I type it into the html file or the css file?

#7
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Content ın the HTML fıle, appearance ın the CSS.
Jordan said:

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

#8
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Sorry, I don't understand.

If I give you the files, could you give me an example of how to make it work?

#9
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
What you do ıs create a <nav> tag, and fıll ıt wıth ıtems. Then, you gıve ıt an ID. In the CSS code you refer to that ID, and wrıte ındıvıdual appearances for dıfferent statuses, eg normal, hover etc.
Jordan said:

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

#10
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
^Hmm... thanks, but I'm still confused! :???

(I sent you a PM with my site files, please show me how it's done!)

Thanks in advance,

Panarchy

#11
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
OK then. Here we go:

<ul id="nav">

<li>Item 1</li>

<li>Item 2</li>

<li>Item 3</li>

</ul>

That's the HTML, and then the CSS:

[HIGHLIGHT=css]#nav li:link, #nav li:visited
{
color: white;
background-color: black;
}
#nav li:hover
{
color: yellow;
background-color: orange;
}
[/HIGHLIGHT]
Untested, does ıt work?
Jordan said:

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

#12
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Don't forget to add
<link rel="stylesheet" type="text/css" href="style.css">
in the HTML file, and replace 'style.css' with the name of your CSS file.