Follow TV Tropes

Following

Space Issue When Adding Page Images

Go To

Lakija Lakija from Chicago Since: Jul, 2012 Relationship Status: Maxing my social links
Lakija
#1: Apr 21st 2014 at 11:59:40 PM

Is there any way to eliminate what appears to be a space before page images? Sometimes the image has a space above it, and it doesn't line up with the text anymore, which is freaking annoying.

Here's an example: Wool

It appears that there is a space above the image and so it doesn't line up with the top of the text (at least on my end).

Any way to prevent that or fix it?

edited 22nd Apr '14 12:01:32 AM by Lakija

It is what it is.
Telcontar In uffish thought from England Since: Feb, 2012
In uffish thought
#2: Apr 22nd 2014 at 4:41:46 AM

Hmmm. It might be because that page image is grossly oversized and thus being resized automatically; upload a version which is only 350 pixels wide and see if it helps.

That was the amazing part. Things just keep going.
m8e from Sweden Since: Jul, 2012 Relationship Status: Wanna dance with somebody
#3: Apr 22nd 2014 at 6:31:31 AM

Doesn't all images do that? They get a white frame and are positioned half a line down.

[up]It is 350 wide. The uploader don't accept anything bigger so only old images can be resized.

edited 22nd Apr '14 6:33:04 AM by m8e

Telcontar In uffish thought from England Since: Feb, 2012
In uffish thought
#4: Apr 22nd 2014 at 7:49:42 AM

Oh, right; whoops. In that case, yes, it's just the way images always are.

That was the amazing part. Things just keep going.
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#5: Apr 22nd 2014 at 5:12:17 PM

This is a CSS issue. Let's see...

  • The image.embedded class specifies a 4px padding around all images. note 
  • For right-aligned images, the div.quoteright class (which houses the image) adds an extra 6px margin and 4px padding.

As a result, a right-aligned image that should be top-aligned with the article's text is actually offset downwards by 14px.

An Ear Worm is like a Rickroll: It is never going to give you up.
FastEddie Since: Apr, 2004
#6: Apr 22nd 2014 at 7:55:14 PM

Adding a forced line break (or so) to the top of the text works. See history on Wool.

Goal: Clear, Concise and Witty
Willbyr Hi (Y2K) Relationship Status: With my statistically significant other
Hi
#7: Apr 22nd 2014 at 8:04:14 PM

Well, that does make things even out, but I guess my question is, is there a purpose for the right-aligning adding that extra space?

Lakija Lakija from Chicago Since: Jul, 2012 Relationship Status: Maxing my social links
Lakija
#8: Apr 23rd 2014 at 2:52:17 PM

I dunno. I might get a smaller image though, and remember the line-break trick.

It is what it is.
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#9: Apr 23rd 2014 at 6:40:29 PM

Okay, so adding a linebreak to the top of the article doesn't actually align the text with the image (or vice versa), it just pushes the article's text down by approximately the same distance.

I agree with @7 - is there a reason to have all this padding and margins?

edited 23rd Apr '14 6:41:17 PM by Stratadrake

An Ear Worm is like a Rickroll: It is never going to give you up.
bwburke94 Friends forevermore from uǝʌɐǝɥ Since: May, 2014 Relationship Status: RelationshipOutOfBoundsException: 1
Friends forevermore
#10: May 13th 2014 at 3:51:58 AM

The proper way to fix a problem is to actually fix the source instead of changing everything else to hide it. What's the reason for the padding?

I had a dog-themed avatar before it was cool.
Add Post

Total posts: 10
Top