Hi there Mario,

I'm fairly new to this so someone with more experience may have a better
solution. I did get it to work, though, by adding this to your style sheet:

.block img {
        float: left;
} 
.block p {
        width: 220px;
        padding: 0 20px;
}

I also removed position: relative and text-align: top (which isn't valid,
btw) from the block class. Also removing the 25px of left padding from the
wrapper allowed brought your block divs to the 780px width needed to fit in
your page.

Making these changes aligns the text toward the top of and 20px from the
left of each of the green bars. Tweak to taste.

HTH,
Bill Scheider

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mário Gamito
Sent: Monday, November 28, 2005 10:38 AM
To: css-d@lists.css-discuss.org
Subject: [css-d] Text padding

Hi,

I have this problem building a pege.

If you care to visit
http://www.tuxdoit.com/prototype.php
you'll see that each block text ("Some text..."), is aligned at the bottom.

How can i align it, let's say, 20px left and 20 px bottom from the top 
of the green bars ?

Any help would be apreciated.

Warm Regards,
Mário Gamito
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to