I want to delete any top space between the border of the div and the text but even using padding-top:0%;
there is still some space.
I using this html code:
#article-container {
float: left;
width: 400px;
}
#article-summary {
color: #5a5a5a;
border: 1px solid red;
width: 250px;
padding-top: 0%;
float: left;
}
#article-summary a {
color: red;
text-decoration: none;
}
<div class="article-container">
<div id="article-summary">
<p>Security vulnerabilities that put customers at risk have affected Asda's website for a couple of years, a security expert has revealed.</p>
<p><span class="date">19 January 2016 | </span><a href="">Technology</a></p>
</div>
</div>