Forums / Templates, Stylesheets, Page Layout / Aligning text to the top of image

Aligning text to the top of image

Locked

Views: 534

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Sep 2010, 1:13 PM
#1
blood2 avatar

blood2

New Zenner

Join Date:
Sep 2010
Posts:
16
Plugin Contributions:
0

Aligning text to the top of image

Hello,

Could you tell me how to align text for displaying near the top of image? I would like to "move" text to the red line (begin of images) which I draw on the atached pictures but I don't know how to do it. Setting text-align:top in css doesn't work.

Thank you for help.

19 Sep 2010, 1:44 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Aligning text to the top of image

We may be able to help with a link to the page.

19 Sep 2010, 2:22 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Aligning text to the top of image

Not sure if this is exactly what you're looking for, but try adding the red part:

.polecamy_img {
padding: 0px 8px 0px 0px;
float: left;
margin-top:1em;
}

19 Sep 2010, 3:07 PM
#4
blood2 avatar

blood2

New Zenner

Join Date:
Sep 2010
Posts:
16
Plugin Contributions:
0

Re: Aligning text to the top of image

Thank you but is there any possibility to "move" text up without 'moving' image down? Unfortunately now image is too low and I would like to have images on same height what now, only text higher.

19 Sep 2010, 4:10 PM
#5
blood2 avatar

blood2

New Zenner

Join Date:
Sep 2010
Posts:
16
Plugin Contributions:
0

Re: Aligning text to the top of image

I added margin-top: -13px; for text and now it's good. Thanks for inspiration! :)