It seems that my href links stopped working while in p tags. They work fine when I put them in H3 tags, but then the layout and style sheet formatting get messed up. I'm starting to wonder if this issue is related to the site's CSS or XHTML.
Code snippet - link won't work:
<div id="written_content">
<div id="header_image"></div>
<h1>How we do it</h1>
<div id="casestudies">
<p><a href="pdf/3Rivers FCU Case Study.pdf" target="_blank">3Rivers Federal Credit Union</a>
<br />
<br />
Momentum developed a three-pronged, integrated approach with 3Rivers to maximize market potential and increase existing branch productivity.</p>
This snippet allows the link to work but messes with formatting:
<div id="written_content">
<div id="header_image"></div>
<h1>How we do it</h1>
<div id="casestudies">
<h2><p><a href="pdf/3Rivers FCU Case Study.pdf" target="_blank">3Rivers Federal Credit Union</a></p><h2>
<p>Momentum developed a three-pronged, integrated approach with 3Rivers to maximize market potential and increase existing branch productivity.</p>
Here is my CSS:
#written_content {
width: 500px;
float: left;
height: auto;
margin-top: 85px;
margin-left: 47px;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
color: #333;
float: left;
margin-top: 0px;
margin-right: 8px;
margin-bottom: 0px;
margin-left: 0px;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: lighter;
float: left;
margin-right: 0px;
margin-left: 0px;
color: #999;
margin-top: 0px;
margin-bottom: 0px;
font-style: normal;
}
#written_content p {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
width: 465px;
margin-top: 60px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
text-align: justify;
color: #999;
line-height: 17px;
}
#casestudies{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
width: 500px;
margin-top: 25px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
text-align: justify;
color: #999;
line-height: 17px;
I never expected to encounter this problem. Can anyone help me figure out why this is happening?