Sidebar Margin/Indentation
-
Hi,
I am trying to remove the indentation/margin from the list of recent topics and other page lists from my sidebar. The first line of the list is indented while the second line has no indentation. My code is below. I can’t seem to find what parameter I am supposed to adjust. Many thanks in advance.
*{margin:0;padding:0;}
body{background:#371015;margin:0;}
body, th, td, input, textarea{color:#333333;font-family:’Lucida Grande’, ‘Lucida Sans Unicode’, Helvetica, Tahoma, Arial, Verdana, sans-serif;font-size:12px;}
form{}
fieldset{}
input, textarea{font-weight:bold;}
input.text{background:#FFFFFF;border:none;padding:1px;}
input.button{background:#000000;border:1px solid #000000;color:#ffffff;}
h1, h2, h3{color:#626456;}
h1{font-size:2.5em;font-weight:lighter;letter-spacing:-.075em;}
h2{color:#CCCCCC;font-size:1em;font-weight:lighter;letter-spacing:-.05em;}
h3{font-size:1em;}
p, ul, ol{font-size:1.1em;line-height:1.8em;margin-top:1.5em;}
ul, ol{margin-left:3em;}
blockquote{margin-left:3em;margin-right:3em;}
a{color:#371015;text-decoration:none;}
a:hover{border:none;}
h1 a, h2 a, h3 a{border:none;color:#333333;text-decoration:none;}
h1 a:hover, h2 a:hover, h3 a:hover{background:none;color:#371015;}
hr{display:none;}
#wrapper{}
#header{background-color:#4F2228;height:40px;margin:0 auto;width:1018px;}
#menu{float:right;padding:10px;}
#menu ul{line-height:normal;list-style:none;margin:0;padding:0;}
#menu li{float:left;}
#menu a{color:#FFFFFF;display:block;float:left;font-size:1em;height:20px;margin-right:1px;padding:0px 20px 0 20px;text-decoration:none;}
#menu a:hover{background:#371015;color:#ffffff;}
#menu .current_page_item a{background:#371015;color:#ffffff;}
#search{float:left;padding:10px;width:270px;}
#search fieldset{border:none;}
#search #s{padding:3px;width:140px;}
#search #x{width:60px;}
#logo{background:url(images/header.jpg) no-repeat left top;border:10px solid #ffffff;border-bottom:none;height:160px;margin:0 auto;width:998px;}
#logo h1, #logo h2{margin:0;padding:0;}
#logo h1{color:#2C2E22;padding:50px 5px 0 20px;}
#logo h2{color:#CCCCCC;margin:10px 0 0 17px;padding:5px;width:30%;}
#logo p{clear:left;color:#C2C5B1;font-size:1.2em;font-weight:bold;line-height:normal;margin:0;padding:0 0 0 20px;}
#logo a{color:#FFFFFF;}
#page{background:#FFFFFF;border:10px solid #ffffff;border-bottom:none;border-top:none;margin:0 auto;padding:20px 0px 0 0px;width:998px;}
#content{float:left;padding:0px 0px 0px 20px;width:570px;}
.post{}
.post .title{font-weight:normal;margin:0;}
h1.title{color:#333333;font-size:2em;padding-left:15px;text-transform:uppercase;}
h2.title{color:#371015;font-size:1.2em;padding-bottom:20px;padding-left:15px;text-transform:uppercase;}
.desctitle{font-size:10px;}
.post h1.title{font-size:1.5em;height:15px;padding:0px 0 0 15px;text-transform:uppercase;}
.post .entry{padding:0 10px 30px 15px;text-align:justify;}
.post .meta{border-bottom:1px dotted #CCCCCC;color:#999999;font-family:Arial, Helvetica, sans-serif;font-size:10px;margin:0;padding:5px 0px 0px 15px;}
.post .meta a{color:#999999;}
.post .links{margin:0;}
.post .tags{background:url(images/img04.gif) repeat-x;font-size:.8em;font-weight:bold;margin:0;text-transform:uppercase;}
.post .links a, .post .tags a{border:none;}
#recent-posts{}
#recent-posts ul li{background:url(images/img04.gif) repeat-x left bottom;font-size:0.8em;padding:3px 3px 3px 15px;}
#recent-posts h2{background:url(images/img12.gif) no-repeat left top;height:25px;margin:0;padding:2px 5px 5px 30px;}
#recent-posts h3{background:url(images/img04.gif) repeat-x left bottom;font-size:13px;margin:0;padding:15px 0 0 15px;}
#recent-posts p{font-size:13px;line-height:22px;margin:0 0 10px 0;padding:15px 0 0 15px;}
.sidebar{float:left;}
.sidebar ul{list-style:none;margin:0;padding:0;}
.sidebar li{margin-bottom:2em;}
.sidebar li ul{}
.sidebar li li{margin:0;}
.sidebar li h2{margin:0 0 3.7em 0;}
#sidebar1{padding-left:10px;width:180px;}
#sidebar1 li h2{background:url(images/leftbar.gif) no-repeat left top;height:25px;margin:0 0 1em 0;padding:2px 5px 5px 30px;}
#sidebar1 li ul{background:url(images/img04.gif) repeat-x;line-height:normal;}
#sidebar1 li li{background:url(images/img04.gif) repeat-x left bottom;font-size:.8em;padding:5px;}
#sidebar2{padding:0px 0px 0px 20px;width:180px;}
#sidebar2 li h2{background:url(images/rightbar.gif) no-repeat left top;height:25px;margin:0 0 1em 0;padding:2px 5px 5px 30px;}
#sidebar2 li ul{background:url(images/img04.gif) repeat-x;line-height:normal;}
#sidebar2 li li{background:url(images/img04.gif) repeat-x left bottom;font-size:.8em;padding:5px;}
#sidebar2 li a{border:none;padding-left:10px;}
#sidebar2 li a:hover{border:none;padding-left:10px;}
#calendar{margin:0 auto;}
#calendar caption{font-weight:bold;}
#calendar table{border-collapse:collapse;text-align:center;width:220px;}
#calendar thead th{background:#CCCCCC;color:#FFFFFF;}
#calendar tbody td{background:#EEEEEE;}
#calendar #today{background:#B8D03B;color:#FFFFFF;font-weight:bold;}
#calendar a{font-weight:bold;}
#calendar #prev{text-align:left;}
#calendar #next{text-align:right;}
#design{background:#FFFFFF url(images/lines2.gif) bottom right no-repeat;height:138px;}
#footer{background-color:#4F2228;border-top:5px solid #4F1820;color:#FFFFFF;font-size:9px;padding:5px;text-align:center;}
#footer a{color:#CCCCCC;}
.info{background-color:#F5F5F5;border-bottom:2px solid #CC9D94;border-top:3px solid #E1E1E1;margin-bottom:20px;padding:10px;}
.comlabel{background:url(images/lines.gif) bottom center no-repeat;color:#666666;font-size:13px;font-weight:lighter;margin-top:10px;padding:60px;}
.comtext{background-color:#371015;border:5px solid #FFFFFF;color:#FFFFFF;padding:5px;}
.postlabel{background:url(images/lines.gif) bottom center no-repeat;color:#666666;font-size:13px;font-weight:lighter;margin:10px 0px 10px 0px;padding:60px;}
.posttext{background-color:#371015;border:5px solid #FFFFFF;color:#FFFFFF;padding:5px;}
.commentlist{list-style:none;}
.authorcomment{background-color:#efefef;margin:10px 0px 0px 0px;padding:3px;}
.odd{border-bottom:2px solid #E5E5E5;color:#333333;padding:2px 10px 2px 10px;}
.odd a:link{color:#FFFFFF;}
.commenttext{color:#000000;color:#666666;font-size:10px;margin:0px 0px 10px 0px;padding:5px 10px 5px 10px;text-transform:uppercase;}
#author, #email, #url{background:#efefef;border:1px solid #cbcbcb;font:13px ‘Lucida Grande’, ‘Lucida Sans Unicode’, Helvetica, Tahoma, Arial, Verdana, sans-serif;margin-bottom:0.6em;margin-top:5px;padding:3px;width:40%;}
#comment{background:#efefef;border:1px solid #cbcbcb;font:13px ‘Lucida Grande’, ‘Lucida Sans Unicode’, Helvetica, Tahoma, Arial, Verdana, sans-serif;margin-bottom:0.6em;margin-top:5px;padding:3px;width:100%;}
#submit{background-color:#efefef;border-bottom:2px solid #CCCCCC;border-left:1px solid #E4E4E4;border-right:2px solid #CCCCCC;border-top:1px solid #E4E4E4;font:13px ‘Lucida Grande’, ‘Lucida Sans Unicode’, Helvetica, Tahoma, Arial, Verdana, sans-serif;padding:3px;}
acronym, abbr, span.caps{cursor:help;}
acronym, abbr{border-bottom:1px dashed #999;}
blockquote{border-left:5px solid #ddd;margin:15px 30px 0 10px;padding-left:20px;}
blockquote cite{display:block;margin:5px 0 0;}
.center{text-align:center;}
hr{display:none;}
a img{border:none;}
.alignright{background-color:#EAEAEA;float:right;padding:5px;}
.alignleft{background-color:#EAEAEA;float:left;padding:5px;}
img.centered{display:block;margin-left:auto;margin-right:auto;}
img.alignright{display:inline;margin:0 0 2px 7px;padding:4px;}
img.alignleft{display:inline;margin:0 7px 2px 0;padding:4px;}
pre{background:#f3f2ed;border:solid 1px #9a9a9a;color:blue;margin:10px;padding:10px;}
code{color:#000;font-size:1.0em;}
-
I would be tempted to look around the .sidebar li ul area.
That is the ul that is inside the li that is part of the .sidebar (I think!) You may need to set a value – even if it is 0 – to remove a default value set by another, higher, element.
If you are trying to find css code in this way I would suggest using Firefox Firebug as this gives you a right click option when hovering over an element and show the hierachy and css (including overloaded code) that applies at that point.
I’ve tried adjusting it but it does not work.
You may need the .sidebar li ul li element amending. With no link to the URL this is pure guesswork I am afraid. I am assuming that the .sdidebar is the right element, it could be #sidebar1{padding-left:10px;width:180px;} or #sidebar2.
Check the element with something like firefox or let me see a URL with a note of which word or text is incorrect and I will see if I can track the actual element for you, but I am working blind.
From this:-
#sidebar2 li li{background:url(images/img04.gif) repeat-x left bottom;font-size:.8em;padding:5px;}
#sidebar2 li a{border:none;padding-left:10px;}
#sidebar2 li a:hover{border:none;padding-left:10px;}the #sidebar2 has padding-left as well as padding and these may well be conflicting.
Actually, I took your advice and downloaded firefox and firebug. Worked like a charm! Thanks!
Hi there,
Can you help me with this thread? Thanks!
http://wordpress.org/support/topic/editadd-posts-pages-have-burgundy-background?replies=2
The topic ‘Sidebar Margin/Indentation’ is closed to new replies.