Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:47
text padding
Poster: kevinl
Dated: Friday April 8 2005 - 17:57:24 BST
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
Poster: Ruth
Dated: Friday April 8 2005 - 19:57:32 BST
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