Relocating the User-Pic/Adding a Margin under the User-Pic

Jun 22, 2007 15:36

It's a two-for-one post this Friday! The question has come up in the past about adding a margin or "gutter" under the userpic in entries (like it is in comments). Unfortunately for those with Basic/Plus accounts, this change requires modifying the print_entry() function a little.

Cut & Paste Code #1 )

how to:instructions, entries:header, s2:theme layer, entries:user icons, advanced, $acct level:paid or perm

Leave a comment

onlysayinghello December 12 2007, 00:32:03 UTC
Do you realize like the almost anxiety I get when I know I have to ask you another question? I swear I think I'll find it on my own, and then I end up going... okay that did it that far.... but....

So I've successfully moved my user icon into the subject of the post section, and I even tracked down this post about putting a color behind the subject of the post, and even read through the 'strike-through' part of the code thinking adding that might put it across the whole post, but it sort of didn't.

I want the entire subject line, user icon section to have like a block of color underneath it. So that it looks like a header to the post with the color block behind it.

Right now I have this CSS in there

.page-header2,
.post-asset .asset-name a {
background-color: #e3e3e3;
}

Thank you in advance... again...

Reply

av8rmike December 12 2007, 02:49:58 UTC
You were pretty close, you just needed to go out a few layers of boxes:

.asset-header {
background-color: #e3e3e3;
}instead of .page-header2,
.post-asset .asset-name a

Reply

onlysayinghello December 12 2007, 02:53:23 UTC
Fantastic!!! Once again you are awesome and have helped me out!

Reply

onlysayinghello December 12 2007, 03:02:15 UTC
okay so you're getting this comment like four times now. sorry. All because strikethrough didn't want to work for me editing this comment.

Anyway, I figured out the padding placement for css, to keep my text from running into the icon... but if there was a way to have the alignment affect only the entry and not the comments would it be a simple thing? or a complicated thing?

Reply

av8rmike December 12 2007, 04:10:00 UTC
Well, you don't have to change the alignment at all; you can just get rid of the float: left statement. The icon will still displace the entry titles. Or, you could do something like:

.asset-inner .user-icon {
float: right;
padding: 10px;
}which isolates the icon in entries.

Reply

onlysayinghello December 12 2007, 04:17:51 UTC
That totally worked!! Of course it did!! Now I need to stop skimming the tag list going, WHAT ELSE CAN I DO??? Because that's where I get into trouble and start having more questions! Silly header-subject area having too much space and making me want to fill it up with stuff like tags!

I really do appreciate all your patience and help and general CSS knowhow and all that.

Reply

av8rmike December 12 2007, 04:48:56 UTC
You're welcome! It's always good to have people trying things out and telling you if it does something unexpected, or pushing the creative boundaries of what the codes can do.

Reply


Leave a comment

Up