![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Hi, all!
I know absolutely nothing about CSS (I'm sure you all love to hear that phrase...XD), and in a fit of insanity decided to make a CSS layout anyway, by engaging in extreme amounts of trial-and-error. You can see the layout on my journal now; it's basically Transmogrified with some superficial changes. (stylesheet, in case it helps)
I think I've finally reached the limit of what I can do with trial-and-error, so I turn to you kind folks now for help!
1) I managed to move the userpics down into the box with the text of the entry, but I don't know how to make the entry text wrap around the userpic instead of the userpic overlapping it.
Here's how the code for the userpic currently looks:
.entry-title, .comment-title { margin: 0; }
.has-userpic .entry-title, .has-userpic .comment-title { margin-right: 120px; }
.entry .userpic a, .comment .userpic a { right: 10px; left: auto; }
.entry .userpic a, .comment .userpic a {
display: table-cell;
position: absolute;
top: 10px;
width: 114px;
height: 114px;
text-align: center;
vertical-align: middle;
padding: 7px;
}
.entry .userpic img, .comment .userpic img {
border: none;
}
OLD PROBLEM SOLVED, NEW PROBLEM ACQUIRED:
changing the userpic from position: absolute to float: right gets the text to wrap around the userpic--thanks,
sam_gardener!--but the userpic is now oddly low:
adding a float: left to the entry title like so:
.has-userpic .entry-title, .has-userpic .comment-title {float: left; margin-right: 120px; }
lets the userpic move up but the date & name of the poster interact with the two floating elements in a variety of bizarre ways:



...Halp?
Thanks in advance for any and all help that you can offer! ♥
I know absolutely nothing about CSS (I'm sure you all love to hear that phrase...XD), and in a fit of insanity decided to make a CSS layout anyway, by engaging in extreme amounts of trial-and-error. You can see the layout on my journal now; it's basically Transmogrified with some superficial changes. (stylesheet, in case it helps)
I think I've finally reached the limit of what I can do with trial-and-error, so I turn to you kind folks now for help!
1) I managed to move the userpics down into the box with the text of the entry, but I don't know how to make the entry text wrap around the userpic instead of the userpic overlapping it.
Here's how the code for the userpic currently looks:
.entry-title, .comment-title { margin: 0; }
.has-userpic .entry-title, .has-userpic .comment-title { margin-right: 120px; }
.entry .userpic a, .comment .userpic a { right: 10px; left: auto; }
.entry .userpic a, .comment .userpic a {
display: table-cell;
position: absolute;
top: 10px;
width: 114px;
height: 114px;
text-align: center;
vertical-align: middle;
padding: 7px;
}
.entry .userpic img, .comment .userpic img {
border: none;
}
OLD PROBLEM SOLVED, NEW PROBLEM ACQUIRED:
changing the userpic from position: absolute to float: right gets the text to wrap around the userpic--thanks,
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)

adding a float: left to the entry title like so:
.has-userpic .entry-title, .has-userpic .comment-title {float: left; margin-right: 120px; }
lets the userpic move up but the date & name of the poster interact with the two floating elements in a variety of bizarre ways:



...Halp?
Thanks in advance for any and all help that you can offer! ♥
Re: userpic
Date: 2010-09-13 12:50 am (UTC)margin: 10px;
should probably work.Re: userpic
Date: 2010-09-13 01:28 am (UTC)no subject
Date: 2010-09-13 01:43 am (UTC)If not I'll get back to you.
no subject
Date: 2010-09-13 02:00 am (UTC)I like you. That's what I did, learnt loads.
However, for me the challenge was to get the userpic out of the entry and into the header, in the end I edited the layer code.
Putting a margin around the image should work. If not, it'll need a bit more trial-and-error. I had a similar problem when I started, but I cannot remember if or how I resolved it, I think I went for a different solution as it was a symptom of a different problem anyway.
no subject
Date: 2010-09-13 02:06 am (UTC)Probably this will work:
change "position: absolute;" to "float: right;"
and then adjust margins to position it where you like best.
no subject
Date: 2010-09-13 02:25 am (UTC)no subject
Date: 2010-09-13 02:33 am (UTC)Any ideas? D:
no subject
Date: 2010-09-13 03:40 am (UTC)change the margin-right to 0px below
.has-userpic .entry-title, .has-userpic .comment-title {float: left; margin-right: 120px; }
add the following margin
margin: -35px 10px 10px 10px;
to this
.entry .userpic a, .comment .userpic a {
no subject
Date: 2010-09-13 03:57 am (UTC)It's not quite fixed yet, but from the way it looks now, a little more fiddling with that margin might do the trick. Thanks!! :D
no subject
Date: 2010-09-13 04:07 am (UTC)In case you don't know this: (please don't be offended if you do)
the numbers stand for margin: top right left bottom; so a higher negative number like -50px should force it higher.
no subject
Date: 2010-09-13 04:12 am (UTC)ARGGH...
That should be: top right bottom left!
Sorry! noticed that was wrong right after I hit submit.
no subject
Date: 2010-09-13 04:34 am (UTC)Well, I just made the changes to the stylesheet, and my layout is working fine now! Thanks a lot, you've been super helpful in finding ways to fix my problems! :D
no subject
Date: 2010-09-13 04:51 am (UTC)'Cause you never know when you might want to change your text margin another 10px to the left. *g*
You're welcome! I'm glad that was helpful since I'm mostly just fumbling around. I went and looked at your journal and the layout looks really nice, I'm impressed. :)
no subject
Date: 2010-09-13 02:39 pm (UTC)But yeah, that works, I should've twigged the absolute issue, that's exactly what I did wrong initially, but it was a year ago.
no subject
Date: 2010-09-13 05:45 pm (UTC)no subject
Date: 2010-09-13 04:25 am (UTC)I'm not offended at all; I did not know that "top right left bottom" was the syntax of those numbers. I sort of guessed that upping it from -35px to -50px would drive it higher, but that's just from my experience with the trial-and-error method of working with CSS. XD So thanks for explaining the actual technicalities behind what I'm fiddling with. ♥
no subject
Date: 2010-09-13 03:55 am (UTC)I didn't notice that you had put that up! (I'm not very observant)
try changing the "float:left;" to "clear:both;"
no subject
Date: 2010-09-13 04:10 am (UTC)no subject
Date: 2010-09-13 04:34 am (UTC)no subject
Date: 2010-09-13 02:45 pm (UTC)