josephbastin Posted April 7, 2006 Share Posted April 7, 2006 <div style="width: 200px; height: 200px; padding: 15px; margin: 10px;">Q. What will be the total width of this DIV?</div> The above code explains1. DIV Width = 200 pixels2. DIV Height = 200 pixels3. DIV Padding = 15 pixels4. DIV Margin = 10 pixelsThe question isWhat will be the total width of the DIV? Link to comment Share on other sites More sharing options...
raimo Posted April 7, 2006 Share Posted April 7, 2006 What will be the total width of the DIV?Measured with MSIE 6, Firefox 1.5.0.1, Opera 8.54, Opera 9 and K-Meleon 0.9and all says: Your div width is 230px. Link to comment Share on other sites More sharing options...
aspnetguy Posted April 7, 2006 Share Posted April 7, 2006 the div will be 230px wide but will take up 250px because of the 10px margin on each side Link to comment Share on other sites More sharing options...
josephbastin Posted October 19, 2006 Author Share Posted October 19, 2006 Thanks a lot guys for the support 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