Forum Moderators: not2easy

Message Too Old, No Replies

Trouble With Hyperlinks and CSS

CSS Hyperlinks

         

lifetime77

4:40 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



I am extremely new to CSS and downloaded some free templates to give myself some practice working with and customizing some elements before I start my own from scratch. I currently am having an issue with getting hyperlinks to work with my buttons. I created a test page in the root directory called test.html alongside the index.html file and linked it to the button. I go to preview the page and nothing happens. I set a hyperlink on a second button to firefox.com and that works fine. below is the code for my buttons
<div class="navcontainer" style="width: 200px; height: 170px">
<ul class="navlist">
<li><a title="link one" href="index.html">home</a></li>
<li><a title="link two" href="index.html">products</a></li>
<li><a title="link three" href="index.html">about</a></li>
<li><a title="link four" href="index.html">local dealers</a></li>
<li><a title="link five" href="test.html">test link</a></li>
<li><a title="link six" href="http://www.Firefox.com/">code editing test</a></li>
<li><a title="link seven" href="index.html">contact us</a><br>
</ul>
</div>

This is proving to be extremely frustrating as I am fairly sure I am very close to getting it to work.

And also a second question. I have been using frames for the current webpage I am working on and my client likes change things like buttons often. With frames I can make the change and it is applied to all pages. Is this something CSS can do? Having to change by hand 200+ files to incorporate a new button would prove very annoying.

Thanks again for taking the time to read this and I apologize if this is somewhat difficult to read or I am using incorrect terminology. Thanks in advance for any help.

D_Blackwell

5:11 pm on Apr 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is test.html in the same directory as the page that you are working with? The file path says that it is.

The structure of the link is fine: Is there a typ0 in the file name?

Be sure that you really used an .html file extension, and not an .htm extension.



Do a search on includes, and begin to familiarize yourself with their great power. A change to one file can be used to emend thousands of pages at once. You may decide to quit frames in a hurry.

lifetime77

5:52 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



Ahh, I was under the impression it saved my file as .html, when I viewed the extension it was saved as a .htm file. Now it works great. Thank you.

Now if I want to add buttons to the ones I already have is there a way to make one change in the code and have it apply to all pages? Can I / Do I have to use frames with my code and if so how would this be done.