PDA

View Full Version : Links will not work on index page



coldnorth
Jul 20th, 2010, 04:27 AM
This might seem like a pretty basic question but it is proving puzzling to me, though I am probably overlooking something. I downloaded a template to save some time, all was going smooth but for some reason the links on the index page will not work. If I re-name the page anything else(same code no other changes than file name) the links work perfect. Any idea what’s happening?

Before someone asks yes I do have the links coded correctly and pointing to the correct file, correct extension, added the “, etc. Though, until recently, it has been a long time since I wrote pages I still know how to put a link in.

I should add that this site is not online, viewing it on my computer only. If anyone wants to look at the template in question its here

http://www.freelayouts.com/templates/Barnyard

I have even tried downloading it again and changing nothing but the links and get the same result, they will not work unless I change the file name.

skywalker2208
Jul 20th, 2010, 04:40 AM
Can you post the code so we can see what you are seeing?

coldnorth
Jul 20th, 2010, 04:46 AM
Sure. This is the section with the links, and from my fresh download in which nothing but the links are changed. As you can see it is nothing fancy, just a simple link. Could there be an issue in the style sheet?

Links</h2>
<ul>
<li><a href="index.html">Main Page</a></li>
<li><a href="service.html">Services</a></li>
<li><a href="about.html">About Us</a></li>
</ul>

coldnorth
Jul 20th, 2010, 04:48 AM
I do not think the problem is with the links themselves, as posted above, but somewhere else. That is why I posted the link to the template. Maybe someone could download the file and see if they get the same error. I am really curious about the cause of this, though it is probably something simple I overlooked.

coldnorth
Jul 20th, 2010, 05:07 AM
This is the entire page, unaltered and unedited.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name : Barnyard
Description: A two-column, fixed-width design.
Version : 1.0
Released : 20080511

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Barnyard by Free CSS Templates</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<!-- start header -->
<div id="header">
<h1>Barnyard </h1>
<p> design By Free CSS Templates</p>
</div>
<!-- end header -->
<div id="banner">&nbsp;</div>
<!-- start page -->
<div id="wrapper">
<div id="page">
<div class="bgtop">
<div class="bgbtm">
<!-- start content -->
<div id="content">
<div class="post">
<h1 class="title">About This Website</h1>
<p class="byline"><small>Posted on August 25th, 2007 by <a href="#">admin</a> | <a href="#">Edit</a></small></p>
<div class="entry">
<p><strong>Barnyard</strong> is a free template from <a href="http://freecsstemplates.org/">Free CSS Templates</a> released under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5 License</a>. The flower photo is fromt <a href="http://www.pdphoto.org/">PDPhoto.org</a>. You're free to use this template for both commercial or personal use. I only ask that you link back to <a href="http://freecsstemplates.org/">my site</a> in some way. Enjoy :)</p>
</div>
<p class="meta"><a href="#" class="more">Read More</a> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a href="#" class="comments">Comments</a> (33)</p>
</div>
<div class="post">
<h2 class="title">Risus Pellentesque</h2>
<p class="byline"><small>Posted on August 25th, 2007 by <a href="#">admin</a> | <a href="#">Edit</a></small></p>
<div class="entry">
<p>Maecenas pede nisl, elementum eu, ornare ac, malesuada at, erat. Proin gravida orci porttitor enim accumsan lacinia. Donec condimentum, urna non molestie semper, ligula enim ornare nibh, quis laoreet eros quam eget ante. Maecenas pede nisl, elementum eu, ornare ac, malesuada at, erat. Proin gravida orci porttitor enim accumsan lacinia. </p>
</div>
<p class="meta"><a href="#" class="more">Read More</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" class="comments">Comments</a> (33)</p>
</div>
<div class="post">
<h2 class="title">Praesent Scelerisque</h2>
<p class="byline"><small>Posted on August 25th, 2007 by <a href="#">admin</a> | <a href="#">Edit</a></small></p>
<div class="entry">
<p>Pellentesque pede. Donec pulvinar ullamcorper metus. In eu odio at lectus pulvinar mollis. Vestibulum sem magna, elementum ut, vestibulum eu, facilisis quis, arcu. Mauris a dolor. Nulla facilisi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed blandit. Phasellus pellentesque, ante nec iaculis dapibus, eros justo auctor lectus, a lobortis lorem mauris quis nunc. Praesent pellentesque facilisis elit. <br />
</p>
</div>
<p class="meta"><a href="#" class="more">Read More</a> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a href="#" class="comments">Comments</a> (33)</p>
</div>
</div>
<!-- end content -->
<!-- start sidebar -->
<div id="sidebar">
<ul>
<li>
<h2>Categories</h2>
<ul>
<li><a href="#">Aliquam liberonare</a></li>
<li><a href="#">Consectetuer adipiscing</a></li>
<li><a href="#">Metusin pellentesque</a></li>
<li><a href="#">Suspendisse maurisres</a></li>
<li><a href="#">Urnanet molestie semper</a></li>
<li><a href="#">Proin gravida porttitor</a></li>
</ul>
</li>
<li>
<h2>Blogroll</h2>
<ul>
<li><a href="#">Aliquam liberonare</a></li>
<li><a href="#">Consectetuer adipiscing</a></li>
<li><a href="#">Metusin pellentesque</a></li>
<li><a href="#">Suspendisse maurisres</a></li>
<li><a href="#">Urnanet molestie semper</a></li>
<li><a href="#">Proin gravida porttitor</a></li>
</ul>
</li>
<li>
<h2>Archives</h2>
<ul>
<li><a href="#">September</a> (23)</li>
<li><a href="#">August</a> (31)</li>
<li><a href="#">July</a> (31)</li>
<li><a href="#">June</a> (30)</li>
<li><a href="#">May</a> (31)</li>
<li><a href="#">April</a> (30)</li>
</ul>
</li>
</ul>
</div>
<!-- end sidebar -->
<div style="clear:both">&nbsp;</div>
</div>
</div>
</div>
</div>
<div id="footer">
<p>&copy;2007 All Rights Reserved &nbsp;&bull;&nbsp; Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a> &nbsp;&bull;&nbsp; Icons by <a href="http://www.famfamfam.com/">FAMFAMFAM</a>.</p>
</div>
</body>
</html>

coldnorth
Jul 20th, 2010, 05:10 AM
This is the accompanying CSS


body {
margin-top: 20px;
padding: 0;
background: #2E2200;
font-size: 11px;
text-align: justify;
color: #ABABAB;
}

body, th, td, input, textarea, select, option {
font-family: "Trebuchet MS", "Times New Roman", Arial, Times, serif;
}

h1, h2, h3 {
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: normal;
color: #FFB300;
}

h1 {
letter-spacing: -2px;
font-size: 3em;
}

h2 {
letter-spacing: -1px;
font-size: 2em;
}

h3 {
font-size: 1em;
}

p, ul, ol {
line-height: 200%;
}

blockquote {
padding-left: 1em;
}

blockquote p, blockquote ul, blockquote ol {
line-height: normal;
font-style: italic;
}

a {
color: #CDCDCD;
}

a:hover {
color: #CDCDCD;
}

hr {
display: none;
}

#wrapper {
width: 800px;
margin: 0 auto;
padding: 0;
background: url(images/img04.jpg) repeat-y left top;
}


/* Header */

#header {
width: 800px;
height: 61px;
margin: 0 auto;
margin-bottom: 20px;
padding: 0;
font-family: "Trebuchet MS", "Times New Roman", Arial, Times, serif;
}

#header h1, #header p {
margin: 0;
}

#header h1 {
float: left;
color: #FFFFFF;
font-size: 36px;
padding-left: 15px;
}

#header p {
float: left;
padding: 17px 0 0 10px;
font-size: 12px;
font-weight: bold;
}

#header a {
text-decoration: none;
color: #F79F1A;
}

#banner {
margin: 0 auto;
margin-bottom: 15px;
padding: 0;
width: 800px;
height: 250px;
background: url(images/img01.jpg) no-repeat center;
}

/* Page */

#page {
width: 800px;
margin: 0 auto;
margin-bottom: 15px;
}

#page .bgtop {
background: url(images/img03.jpg) no-repeat left top;
}

#page .bgbtm {
background: url(images/img05.jpg) no-repeat left bottom;
}

/* Content */

#content {
float: right;
width: 505px;
margin: 0;
padding: 25px 25px 15px 20px;
}

.post {
padding: 0px 0 0 0;
}

.title {
border-left: 6px solid #2E2E2E;
padding: 0 20px 0 10px;
font-size: 24px;
}

.title a {
text-decoration: none;
color: #FFFFFF;
}

.pagetitle {
}

.byline {
margin: -25px 20px 0 17px;
color: #646464;
}

.meta {
text-align: left;
color: #646464;
padding: 10px 20px 20px 17px;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
}

.meta .more {
background: url(images/img08.gif) no-repeat left 50%;
padding-left: 10px;
}

.meta .comments {
background: url(images/img08.gif) no-repeat left 50%;
padding-left: 10px;
}

.meta a {
color: #FFB300;
}

.navigation {
}

.alignleft {
float: left;
}

.alignright {
float: right;
}

.posts {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}

.posts li {
}

.posts h3 {
margin: 0;
font-weight: bold;
}

.posts p {
margin: 0;
line-height: normal;
}

.posts a {
}

.entry {
margin: 0;
padding-left: 17px;
}

.last {
border: none;
}

/* Sidebar */

#sidebar {
float: left;
width: 210px;
margin-bottom: 10px;
padding: 40px 0 0 40px;
color: #7A7A7A;
}

#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}

#sidebar li {
margin: 0;
padding: 0;
}

#sidebar li ul {
margin: 0 0 20px 0;
padding: 0;
}

#sidebar li li {
margin: 0 0 0 10px;
padding: 0 0 0 10px;
background: url(images/img08.gif) no-repeat left 50%;
line-height: 25px;
}

#sidebar h2 {
margin: 0;
height: 35px;
font-size: 18px;
}

#sidebar a {
}

#sidebar a:hover {
text-decoration: none;
}

/* Search */

#search input {
display: none;
}

#search input#s {
display: block;
width: 230px;
padding: 2px 5px;
border: 1px solid #3DD1FF;
background: #FFFFFF url(images/img05.gif) repeat-x;
}

#search br {
display: none;
}

/* Calendar */

#calendar {
}

#calendar h2 {
margin-bottom: 15px;
}

#calendar table {
width: 80%;
margin: 0 auto;
text-align: center;
}

#calendar caption {
width: 100%;
text-align: center;
}

#next {
text-align: right;
}

#prev {
text-align: left;
}

/* Footer */

#footer {
width: 800px;
height: 60px;
min-height: 60px;
background: url(images/img02.jpg) no-repeat left top;
margin: 0 auto;
margin-bottom: 20px;
text-align: center;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #ABABAB;
}

#footer p {
padding: 20px 0;
}

#footer p a {
color: #FFB300;
}