I have recently designed an HTML page featuring a list of links using ul
and li
elements, with a customized background color for each li
. Now, I am looking to add vertical lines next to the li
items.
When attempting to insert an image, my output looks like what is displayed in figure 1, however, I aspire for it to resemble the design shown in figure 2.
figure 1
https://i.sstatic.net/Ys4N6.jpg
figure 2
https://i.sstatic.net/X54VQ.jpg
Up until now, here is what I have attempted:
ul#sitemap1 {
list-style: none;
}
ul#sitemap1 li a {
background-color: #002163;
color: white;
padding: 10px;
text-decoration: none;
width: 200px;
display: block;
margin: 10px;
font-weight: bold;
}
#sitemap1 li {
clear: left !important;
margin-top: 0px !important;
padding: 10px !important;
background: url('/Images/ConnectLine.JPG') no-repeat !important;
float: inherit;
}
ul#sitemap1 li a:hover {
background-color: Orange;
}
ul#sitemap2 {
list-style: none;
}
ul#sitemap2 li a {
background-color: #002163;
color: white;
padding: 10px;
text-decoration: none;
width: 200px;
display: block;
margin: 10px;
font-weight: bold;
}
ul#sitemap2 li a:hover {
background-color: Orange;
}
ul#sitemap3 {
list-style: none;
}
ul#sitemap3 li a {
background-color: #002163;
color: white;
padding: 10px;
text-decoration: none;
width: 200px;
display: block;
margin: 10px;
font-weight: bold;
}
ul#sitemap3 li a:hover {
background-color: Orange;
}
<h1>Innovations</h1>
<ul id="sitemap1">
<a href="https://Home.aspx" style="font-weight:bold;text-decoration:none">Home</a>
<li><a href="https://Services.aspx">Services</a></li>
<li><a href="https:///OC.aspx">Organizational Change</a></li>
<li><a href="https://kit.aspx">kit</a></li>
<li><a href="https://Sheets.aspx">Sheets</a></li>
</ul>
<ul id="sitemap2">
<a href="https://Engagement.aspx" style="font-weight:bold; text-decoration:none">Engagement</a>
<li><a href="https://Ideas.aspx">Ideas</a></li>
<li><a href="https://WS.aspx">WorkSmart</a></li>
</ul>
<ul id="sitemap3">
<a href="https://Links.aspx" style=" font-weight:bold; text-decoration:none">Related Links</a>
<li><a href="https://Gotime.aspx">GO-TIME</a></li>
</ul>