css tip : set margin parameters

31 10 2009

if you get confuse and feel hard to remember the parameter sequence for ‘margin’ tag in css then just bookmark the url of my this post :)

General Format:

margin:Toppx Rightpx Bottompx Leftpx

 

Example:

<div style=” margin:14px 10px 7px 16px;”>
This inline css code will make this div to produce margin: 14px at top, 10px at right, 7px at bottom and 16px at left

Hope this will help someone ;)








Follow

Get every new post delivered to your Inbox.