Stretchwickster
Programmer
Hi there,
A while ago I created a noticeboard page on one of my websites using the equivalent of the following code. I now want to add a little RSS image (16 x 16 pixels) and link neatly into the top-right of a noticeboard-item so that it lines up with the text of the h3 tag. I've tried several ways, but it always looks a bit messy. How would you approach this? I've highlighting the new line of code in red.
Your advice would be much appreciated!
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
A while ago I created a noticeboard page on one of my websites using the equivalent of the following code. I now want to add a little RSS image (16 x 16 pixels) and link neatly into the top-right of a noticeboard-item so that it lines up with the text of the h3 tag. I've tried several ways, but it always looks a bit messy. How would you approach this? I've highlighting the new line of code in red.
Your advice would be much appreciated!
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title></title>
<style type="text/css">
#noticeboard {
margin-top: 5px;
margin-right: 0;
padding-top: 0;
padding-right: 0;
}
#noticeboard .noticeboard-item {
background-color: #F4F3FB;
/*border: 1px solid #D9B0F2;*/
float: left;
margin-top: 0;
padding-top: 0;
margin-right: 13px;
margin-bottom: 10px;
/*height: 230px;*/
width: 220px;
}
#noticeboard .noticeboard-item h3 {
border-bottom: 1px solid #D9B0F2;
background-color: #D9B0F2;
color: #FFFFFF;
font-size: small;
margin-top: 0;
margin-bottom: 0;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 3px;
}
#noticeboard .noticeboard-item ul {
list-style-position: outside;
list-style-type: none;
margin-left: 5px;
margin-right: 5px;
margin-top: 0;
padding-top: 0;
padding-left: 0;
}
#noticeboard .noticeboard-item li {
margin-bottom: 0;
margin-top: 0;
margin-left: 0;
padding-left: 0;
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #D9B0F2;
}
</style>
</head>
<body>
<div id="noticeboard" style="height: 375px;">
<div class="noticeboard-item" style="height: 200px;">
<h3>Announcements</h3>
[COLOR=red]<a href="rss/rss_announcements.xml"><img src="rss.jpg" title="RSS Announcements Feed" alt="RSS Feed Image"></a>[/color]
<ul class="notices">
<li><strong>NEW!</strong> Major announcement<br /><a href="info.php" target="_blank">View Info</a><br /></li>
<li>Please send us any enquiries via the contact form</li>
</ul>
</div>
</div>
</body>
</html>
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096