I need some assistance with adding a link to a pop-up window. Here's the HTML code I currently have:
HTML
<div id="popup">
<a href="#"><div id="popup-headline">News 1</div><div id="local">News Author</div>
<div id="date">| May 24, 2016</div><span><strong>News Text</strong><br /><br />News Text</span></a>
</div>
CSS
#popup { color: #000; background-color: #fff; }
#popup a, #popup a:visited {
position: relative;
display: block;
width: 100%;
line-height: 15px;
text-align: left;
padding: 0;
padding-bottom: 5px;
margin: 0;
border-bottom: 1px solid #ccc;
text-decoration: none;
font-size: 1em;
font-weight:normal;
color: #0088cc;
}
#popup a span {
display: none;
}
#popup a:hover {
background-color: #fff;
}
/* IE correction rule */
#popup a:hover {
color: #005580;
background-color: #fff;
text-indent: 0; /* added the default value */
}
#popup a:hover span {
display: block;
position: absolute;
border:4px solid #ddd;
top: 4px;
left: 60px;
width: 226px;
margin: 0px;
padding: 8px;
color: #005580;
font-weight: normal;
background: #fff;
text-align: left;
z-index: 2;
overflow: hidden;
}
#date {
color: #999;
}
#popup-headline {
margin-top: 15px;
line-height: 15px;
}
#popup-headline-2 {
margin-top: 5px;
line-height: 15px;
}
#local {
line-height: 15px;
float: left;
}
The issue lies in trying to insert an anchor link within the news text section, such as
<a href="link">Click Here</a>
, which causes the code to break and the link doesn't appear in the pop-up window.
If anyone can provide guidance on whether this is feasible or how I can display links within the pop-up window, I would greatly appreciate it.
Thank you for your help.
You can see this feature on the following website:
On the homepage, navigate to the Local News Section and hover over Branch AGM to see a pop-up window. It's within this window that I'm looking to add a link.