[personal profile] inner_v0ice posting in [community profile] style_system
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, [personal profile] 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! ♥

Re: userpic

Date: 2010-09-13 12:50 am (UTC)
arobynsung: (white collar)
From: [personal profile] arobynsung
Maybe a margin around that userpic, so that it doesn't interfere with the text.
margin: 10px; should probably work.

Date: 2010-09-13 01:43 am (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (catbus!)
From: [personal profile] sam_gardener
Because the element is position: absolute putting a margin in won't help. Off the top of my head I don't know the best way to make this work - probably someone else will tell you before I figure it out. :)

If not I'll get back to you.

Date: 2010-09-13 02:00 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
in a fit of insanity decided to make a CSS layout anyway, by engaging in extreme amounts of trial-and-error

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.

Date: 2010-09-13 02:06 am (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (Default)
From: [personal profile] sam_gardener

Probably this will work:

change "position: absolute;" to "float: right;"

and then adjust margins to position it where you like best.

Date: 2010-09-13 03:40 am (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (Default)
From: [personal profile] sam_gardener
two things you could try:

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 {

Date: 2010-09-13 04:07 am (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (Default)
From: [personal profile] sam_gardener
Yay! I wasn't sure the negative margin thing would work there.

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.

Date: 2010-09-13 04:12 am (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (Default)
From: [personal profile] sam_gardener
the numbers stand for margin: top right left bottom;

ARGGH...
That should be: top right bottom left!

Sorry! noticed that was wrong right after I hit submit.

Date: 2010-09-13 04:51 am (UTC)
sam_gardener:  Chihiro with rock (Chihiro: heavy lifting)
From: [personal profile] sam_gardener
Whoops! Okay, I'll remember that that's the correct order. XD

'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. :)

Date: 2010-09-13 02:39 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Despite knowing it's clockwise from top, I can never remember it when I'm actually coding, several of my styles end up with margin-top, margin-left, etc just because I can't get it wrong. Waste of code bandwidth, but at least it's right...

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.

Date: 2010-09-13 05:45 pm (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (Default)
From: [personal profile] sam_gardener
Yeah, I have difficulty remembering things from a day ago, never mind a year. :)

Date: 2010-09-13 03:55 am (UTC)
sam_gardener: The catbus from My Neighbor Totoro. (Default)
From: [personal profile] sam_gardener
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:


I didn't notice that you had put that up! (I'm not very observant)
try changing the "float:left;" to "clear:both;"

Date: 2010-09-13 04:34 am (UTC)
baggyeyes: Bugs Bunny and the Bull (Default)
From: [personal profile] baggyeyes
I like what you did with your journal style.

Date: 2010-09-13 02:45 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
I also, if the background and stuff is original, would be nice to see that available within the style brower. Wouldn't suit me, but would suit some friends I think.

Profile

Dreamwidth style system discussion

July 2025

S M T W T F S
  123 45
6789101112
13141516171819
20212223242526
2728293031  

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 02:45 pm
Powered by Dreamwidth Studios