Ah1! Looks like Wordpress put that in there as I had a carriage return in my html editor. I remove that, and now the list seems to be behaving better.
The one remaining issue is what’s preventing the lines from being longer. I applied 5px padding to the class .social_links and added !important. But something else seems to be involved to cause so much space to the left and right within the box. I see .entry-content ul applying 0 0 0 35px padding and 13px 0 margin. How can I override these settings in .social_links?
/*home page social media links box*/
.social_links[B] ul[/B] {
background: #5d5f5c;
color: white;
/*border-style:solid;
border-color:red;*/
text-align: center;
[COLOR=Blue] padding: 10px 0 ;
margin:0;[/COLOR]
}
.social_links [B]ul li[/B] {
display: -moz-inline-box;/* for FF2 (inline-box must be used for shrink wrapping)*/
[COLOR=Blue]display:inline-block;/* [/COLOR]for modern browsers (set vertical margins and dimensions when needed)*/
[COLOR=Blue] margin:5px;[/COLOR]
}
* html .social_links ul li {display:inline;}/* inline-block trigger for IE6 */
*+html .social_links ul li {display:inline;}/* inline-block trigger for IE7 */
When I click on the social_links tab, I see your 35px padding.
When I click on the ul, it disappears, and all that is inherited from the social_links class are color and text-align, the padding is taken from .entry-content ul.
The reason obviously lies in the way inheritance works in css, but I’m no expert, so let’s see what the guru’s have to say about it
You can also reduce the white space between items by giving some small amount of negative word-spacing to the ul.
I think I saw that Ray removed the side padding from the ul’s parent; if not, do so.
Regarding the “!important” thingie: If you need it, you’ve messed up your cascade or specificity, or you’ve decided to override your visitors’ user stylesheets. The first two errors involve a bit of trouble-shooting; no biggie. The third requires an attitude adjustment.
I have stopped fiddling. Put your code back in tact, and the background color seems fine.
I think I understand how it works now, except it seems to me the vertical padding should is more than 5px. I’d love to get all the images on two lines. Is the only way to do that by making the images smaller?
I’m using a sub-style sheet under the K2 (Wordpress theme) primary style sheet. The idea is to not mess with the primary style sheet, so you can keep that as the default.
I would think I could override the parent side padding within the sub-style sheet, yes?