jnf555 Posted January 10, 2010 Share Posted January 10, 2010 Hi Can anyone tell me if theres a code to stop padding making my element bigger than the programmed height and widththanksjnf555 Link to comment Share on other sites More sharing options...
Ingolme Posted January 10, 2010 Share Posted January 10, 2010 No, that's how the W3C box model works. Design your box and subtract the padding from the width, then you put the result in your stylesheet as the width instead. Link to comment Share on other sites More sharing options...
jnf555 Posted January 10, 2010 Author Share Posted January 10, 2010 thanksjnf555 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now