Jump to content

Default Unit isn't px


florynth
 Share

Recommended Posts

I I've try to validate my page by CSS with the W3C but I get a problemit's not ok to put......padding: 10 10 10 10;......because there's no unit so I putpadding: 10px 10px 10px 10px;Now all my div and everything are disproportionnate (used for width and height also)What's wrong ?

Link to comment
Share on other sites

I solve the problem but I found something bizare...with no unit fix it't like the padding amount where not add to the width and height of the element so everything was right. When I did put the px everything when out of proportion so I did ajust all the width and height property... Fianaly all work...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...