Pretty new to css and trying to make the tags on my page smaller on all sides. What are the best settings to modify? Margin doesn't seem to do what I want.
.story .content .tags .tag
{
margin: 10px 5px 10px 5px;
background-color: #99FF33;
font-weight: 500;
color: #330099;
font-style: inherit;
font-family: 'Times New Roman';
padding-right: 6px;
}
Here is the relevant snippet, I want to make the links smaller vertically. Do I need to specify the height explicitly then?:
<span class="tags"><span class="text">:</span>
<% for (int i = 0; i < story.Tags.Length; i++) %>
<% { %>
<% string tag = story.Tags[i]; %>
<% if (i > 0) %>
<% { %>
<%= " "%>
<% } %>
<%= Html.ActionLink<StoryController>(c => c.Tag(tag.UrlEncode(), 1), Server.HtmlEncode(tag), new { @class = "tag" })%>
<% } %>
</span>