any tips on how i can use CSS to style these links in a small side widget to look hot using css? (here is my html code)
i would love a clean and simple layout
<div id="related_links">
<ul>
<li><a alt="SQL Server Performance Tuning" title="SQL Server Performance Tuning" href="/Database.aspx">SQL Services</a></li>
<li><a alt="SQL Server Performance Tuning" title="SQL Server Performance Tuning" href="/Database/MSSQLServerPerformanceTuning.aspx">Performance Tuning</a></li>
<li><a alt="SQL Server Audit Service" title="SQL Server Audit Service" href="/Database/SQLServerAuditService.aspx">SQL Auditing</a></li>
<li><a alt="Upgrade to Microsoft SQL 2008" title="Upgrade to Microsoft SQL 2008" href="/Database/SQLServer2008.aspx">SQL 2008</a></li>
</ul>
</div>
I think A List Apart already covered this many years ago:
http://www.alistapart.com/articles/taminglists/
Vertical
(credit: A List Apart)
Horizontal
Here’s almost the same example that I’ve touched up with a few formatting changes.
How to remove spaces
To remove spaces between the items, you’ll have to either float the list items, or remove the whitespace between the end of one and the beginning of another:
From:
To:
Notice: the method after
1does not ends the list tag until the next line, not allowing whitespace between the two list items. Method2is similar, it uses a comment, though, to ignore any whitespace between the second and third list items.Again, you could always just float the
liin the CSS