Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3302378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:50:43+00:00 2026-05-17T20:50:43+00:00

any tips on how i can use CSS to style these links in a

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:50:44+00:00Added an answer on May 17, 2026 at 8:50 pm

    I think A List Apart already covered this many years ago:
    http://www.alistapart.com/articles/taminglists/

    Vertical

    (credit: A List Apart)

    #related_links {
            width: 12em;
            border-right: 1px solid #000;
            padding: 0 0 1em 0;
            margin-bottom: 1em;
            font-family: 'Trebuchet MS', 'Lucida Grande',
            Verdana, Lucida, Geneva, Helvetica, 
            Arial, sans-serif;
            background-color: #90bade;
            color: #333;
            }
    
        #related_links ul {
            list-style: none;
            margin: 0;
            padding: 0;
            border: none;
            }
            
        #related_links li {
            border-bottom: 1px solid #90bade;
            margin: 0;
            }
    
        #related_links li a {
            display: block;
            padding: 5px 5px 5px 0.5em;
            border-left: 10px solid #1958b7;
            border-right: 10px solid #508fc4;
            background-color: #2175bc;
            color: #fff;
            text-decoration: none;
            width: 100%;
            }
    
        html>body #related_links li a {
            width: auto;
            }
    
        #related_links li a:hover {
            border-left: 10px solid #1c64d1;
            border-right: 10px solid #5ba3e0;
            background-color: #2586d7;
            color: #fff;
            }
    <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>

    Horizontal

    Here’s almost the same example that I’ve touched up with a few formatting changes.

    #related_links {
            background-color  : #90bade;
            color             : #333;
            font-family       : Tahoma;
            font-size         : .7em;
            padding           : 1em;
            }
    
        #related_links li {
            border-bottom     : 1px solid #90bade;
            list-style-type   : none;
            display           : inline-block;
            }
    
        #related_links li a {
            background-color  : #2175bc;
            color             : #fff;
            border-left       : 10px solid #1958b7;
            border-right      : 10px solid #508fc4;
            font-weight       : bold;
            padding           : .5em;
            text-decoration   : none;
            }
    
        #related_links li a:hover {
            background-color  : #2586d7;
            color             : #fff;
            border-left       : 10px solid #1c64d1;
            border-right      : 10px solid #5ba3e0;
            }
    
    ### If you don't want the background spanning the whole screen
    
        #related_links, #related_links ul{
           display            : inline;
           }
    <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>

    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:

    <ul>
      <li>1</li>   
      <li>2</li>   
      <li>3</li>
    <ul>

    To:

      <ul>
              <li>1</li
             ><li>2</li><!--   
           --><li>3</li>
        <ul>

    Notice: the method after 1 does not ends the list tag until the next line, not allowing whitespace between the two list items. Method 2 is similar, it uses a comment, though, to ignore any whitespace between the second and third list items.

    Again, you could always just float the li in the CSS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do you have any tips for effective profiling using Netbeans? The profiler is quite
Does anyone have any tips or gotcha moments to look out for when trying
I'm tyring to use the GEM css_views to generate dynamic CSS. The GEM can
i want to use a css style switcher on a live server. i've been
How do you get cross browser compatibility in Print? any tips for print css
Any tips on combining multiple .js files into 1 (for a build process). Will
Any tips to programming would be appreciated.
Does anyone have any tips for dealing with ConstraintExceptions thrown by XSD datasets? This
Does someone have any tips/advice on database design for a web application? The kind
Does anyone have any tips that could help speed up a process of breaking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.