CSS Changes Makes Sidebar Cleaner Looking
-
I like the “Deep Silent” theme, but there were problems with the CSS appearance of the Side bar content. The link entries that required two lines overlapped the next line below it and over all appearance showed some disorder and not formatted well. The division space between the sidebar titles was too much. A few minor changes to the “styles.css” file made the sidebar appearance clean and neat.
Here is what I changed:
(Old)
#sidebar ul li ul{
background-image:url(images/bg_li_bottom.gif);
background-repeat:repeat-x;
background-position:bottom left;
padding-bottom:2px;
margin-bottom:20px;
padding-top:5px;
border-top:1px solid #767155;
}
(New)
#sidebar ul li ul{
padding-bottom:2px;
margin-bottom: 5px;
padding-top:5px;
border-top:1px solid #767155;
border-bottom: 1px solid #767155;
}
I took out the background image that was used as a divider. Reason is that I believed that it was either the straight line or the image, not both. The simpler method was to use a border line and it was cleaner looking. I removed some CSS entries and modified others. It streamlined the appearance.Next change:
(Old)
#sidebar ul li ul li a{
color:#000000;
text-decoration:none;
display:block;
height:23px;
padding:0px 5px 0px 15px;
font-size:12px;
line-height:23px;
}
(New)
#sidebar ul li ul li a{
color:#000000;
text-decoration:none;
display:block;
padding:5px 5px 5px 15px;
font-size:12px;
line-height: 13px;The combination of “height” and “line-height” created problems in how the lines were displayed and caused overlapping or made everything into a disordered look. I kept the “line-height” and modified it to allow better formatting for two lined entries and added a bit to the padding.
Now it looks good. You can see it at https://mormondirection.com
Thanks
- The topic ‘CSS Changes Makes Sidebar Cleaner Looking’ is closed to new replies.