Feb
12
awarded Student
Jan
22
awarded Popular Question
Mar
16
awarded Tumbleweed
Mar
16
awarded Tumbleweed
Feb
23
comment WPML in custom page templates
I'll take a look. Thanks so much!
Feb
22
asked WPML in custom page templates
Feb
21
awarded Scholar
Feb
21
comment Horizontally centering images with variable widths
I ended up making the image a CSS background instead of an inline image. Not sure if it's the best solution, but it's the only one that worked :D
Feb
21
accepted Horizontally centering images with variable widths
Feb
21
comment Horizontally centering images with variable widths
The image was wrapped in an <a> tag, so that might be making a difference?
Feb
21
comment Horizontally centering images with variable widths
I ended up doing it using the image as a CSS background. :S Not ideal, but works.
Feb
20
comment Horizontally centering images with variable widths
Ok, I think I found the issue: the image is larger than its containing element. Could that be what's stopping the image from getting centered?
Feb
20
comment Horizontally centering images with variable widths
Doesn't work if the image doesn't have a set width
Feb
20
comment Horizontally centering images with variable widths
@DavidFaux margin:0 auto; works only for elements that have a defined width, so in this case it wouldn't work, right? Because I just tried it and it didn't.
Feb
20
comment Horizontally centering images with variable widths
"I think what you're trying to do is center a variable-width image. " That's exactly what I'm trying to do. :) But the image is inside an <a> which is inside a <div>, and sadly, text-align:center doesn't do anything :(
Feb
20
comment Horizontally centering images with variable widths
The image is inside an <a> tag and then inside a div. I tried using text-align:center and it didn't work :(
Feb
20
asked Horizontally centering images with variable widths