akitchin Posted July 18, 2006 Share Posted July 18, 2006 i recently saw a post that advocated using * { margin: 0; padding: 0; } to avoid most typical CSS alignment issues. i quite liked this, because it did resolve a lot of cross-browser problems. when i used a <select></select> box in firefox with this declaration in the stylesheet, its width was inexplicably shorter than the longest (and indeed, most) options. no amount of padding/margin changes to the select element (type selected and with the style attribute) would fix it. two questions:1. does anyone else get this happening to them?2. anyone know of a fix?for now i've simply specified all tags other than select that i'm using in the default margin/padding stripping. Link to comment https://forums.phpfreaks.com/topic/14909-stripping-default-marginpadding-from-all-elements-in-css/ Share on other sites More sharing options...
AndyB Posted July 18, 2006 Share Posted July 18, 2006 http://www.andybudd.com/archives/2003/11/no_margin_for_error/That might be relevant (by way of explanation, not as a solution). Link to comment https://forums.phpfreaks.com/topic/14909-stripping-default-marginpadding-from-all-elements-in-css/#findComment-59780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.