harikrishnan.n0077 harikrishnan.n0077 - 1 year ago 111
HTML Question

Using a auto margin in css but want a minimum margin

I had checked Using a percentage margin in CSS but want a minimum margin in pixels?. It had how to implement a minimum margin when using percentage. But i am using

margin:5px auto;

How to set a minimum margin on the left side. i had used auto margin as per Reducing the space equally when resizing browser window


Answer Source

If i saw your code & question may be you can write like this:

 margin:5px 10% 5px 5%;

Check this for more http://jsfiddle.net/spVNu/1/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download