text padding

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kevinl
Advanced
Advanced
Posts: 18
Joined: Thu Feb 24, 2005 7:12 pm

text padding

Post by kevinl »

Hi,

I have padding=5; defined in my style but what I want to do is have, say 5 px above and below the text but 15 to the left of it.

I tried padding =15,5,5,5; and padding 15 5 5 5; (with and without adding px) but just cant get it to work

Looking at http://www.solomon.ie/test/ what I want to do just move the text a but further away from the browser LHS.

I tried just adding a few spaces before the text but then the "for" in "Our Terms and Conditions for this site" didnt align corectly.

What is the correct syntax for specifying padding and what order are the values in,ie left, top,right,bottom or what?

Many thanks,
Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Use the rawcss parameter in the style1 definition. rawcss="padding=5px 15px 5px 15px"; You need to remove the padding=5 or it will add another 5 px all around. The code goes clockwise top,right,bottom,left.

Ruth
kevinl
Advanced
Advanced
Posts: 18
Joined: Thu Feb 24, 2005 7:12 pm

Post by kevinl »

Hi Ruth,

Many thanks for your help, it worked fine.

However, padding=5px 15px 5px 15px"; didnt work, I had to replace the = with : ,ie padding:5px etc.

Thanks,
KEvin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

:oops: Sorry, about that. You're right, because it's raw 'css' I should have caught that.

Ruth
Post Reply