Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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


Poster: kevinl
Dated: Monday April 11 2005 - 10:11:39 BST

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


Poster: Ruth
Dated: Monday April 11 2005 - 13:33:14 BST

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

Ruth