cozart
08-14-2010, 08:51 PM
so i'm adding a row of social media share buttons at the end of my blog posts, but the ul li code i've written won't override the default code.
here is the class i've written in the stylesheet:
* social media share links */
#socmed {
padding:0px 0px 50px 0px;
background:none;
}
#socmed ul {
background:none;
}
#socmed ul li a {
float:left;
margin:0px 0px 0px 0px;
background:none;
}
here is what i've written in the html for the posts:
<div id="socmed">
<ul>
<li><a href="http://www.facebook.com/sharer.php"<img src="*facebookimgurl*.png" alt="share on Facebook" height="25" width="25"></a></li>
</ul>
</div>
here's what it won't override in the stylesheet:
#content #colLeft ul li, #content #colLeft ol li {
padding:5px 0 5px 25px;
background:url(images/bullet_list.png) 0 8px no-repeat;
}
i can't get it to override the padding or the background image, however it's not showing the full background image, just a little sliver (screenshot attached). if i take the "a" out of the "#socmed ul li a {" line, it does show the whole image.
any ideas??
here is the class i've written in the stylesheet:
* social media share links */
#socmed {
padding:0px 0px 50px 0px;
background:none;
}
#socmed ul {
background:none;
}
#socmed ul li a {
float:left;
margin:0px 0px 0px 0px;
background:none;
}
here is what i've written in the html for the posts:
<div id="socmed">
<ul>
<li><a href="http://www.facebook.com/sharer.php"<img src="*facebookimgurl*.png" alt="share on Facebook" height="25" width="25"></a></li>
</ul>
</div>
here's what it won't override in the stylesheet:
#content #colLeft ul li, #content #colLeft ol li {
padding:5px 0 5px 25px;
background:url(images/bullet_list.png) 0 8px no-repeat;
}
i can't get it to override the padding or the background image, however it's not showing the full background image, just a little sliver (screenshot attached). if i take the "a" out of the "#socmed ul li a {" line, it does show the whole image.
any ideas??