I'm having issues with the layout on my journal and graphics page. Suddenly, instead of replacing the default userhead with the custom mini-icon coded in my CSS, the default is appearing in front of the custom one. Ala the following:
(
Read more... )
Comments 89
But fixing it was easier than I expected \o/. Add !important before every semicolon in the userhead codes.
Reply
EDIT: Ah wait. I just had a look at the code I'm using for tiny icons (from Malionettes generator) which looks like this (with my URL in it):
img[src*="img/userinfo.gif"] {width: 0 !important; height: 0 !important;
background: transparent url(http://img228.imageshack.us/img228/4445/199w.png) no-repeat !important; padding: 16px 0 0 16px !important; }
Looks like there is an !important before every semicolon, but it's still not working :\ Or am I not seeing one?
Reply
Reply
Reply
.ljuser img[src*="userinfo.gif"], .ljuser img[src*="userhead"] {background-color:transparent !important; background-image: url(http://i43.tinypic.com/15efwwi.jpg) !important; padding: 14px 14px 0 2px !important; background-position: center left !important; }
.ljuser img[src*="community.gif"] {background-color:transparent; background-image: url(http://i39.tinypic.com/2vamsyp.jpg) !important; padding: 14px 14px 0 2px !important; background-position: center left !important; }
I am CSS-challenged. Halp?
Reply
width: 0 !important;
height: 0 !important;
Just add them at the end, inside the } bracket.
Reply
I'm like, CSS dumb. I got the layout from one of the layout comms here on LJ and only figured out enough to changed colors and remove backgrounds. But I have no idea how to write it from scratch or fix stuff when it's broken.
Reply
Reply
(The comment has been removed)
DO NOT BITE THE PHISHING LURES.
Reply
Reply
.ljuser img[src="http://stat.livejournal.com/img/user.gif"] with .ljuser img[src*="userinfo.gif"]
and
.ljuser img[src="http://stat.livejournal.com/img/community.gif"] with .ljuser img[src*="community.gif"]
That should do the trick!
Reply
Reply
Reply
Leave a comment