cgm225 Posted August 16, 2008 Share Posted August 16, 2008 I have a CSS question... I have a webpage where I post Notes/blog entries, and at the bottom there is a dropdown menu to select how many entries to display. However, I cannot get the dropdown menu to have NO margin and NO padding such that it "sits" against the lower border of the last entry displayed. Any ideas why the drop down menu has a ~4px upper margin/padding? The page is at this location. Link to comment https://forums.phpfreaks.com/topic/119930-problem-getting-form-to-have-no-margin-no-padding/ Share on other sites More sharing options...
wildteen88 Posted August 16, 2008 Share Posted August 16, 2008 The problem is the div that contains each of your note/blog entries has a 12px margin on the bottom, this will cause your drop down container to not stick to the bottom of your notes. Link to comment https://forums.phpfreaks.com/topic/119930-problem-getting-form-to-have-no-margin-no-padding/#findComment-618001 Share on other sites More sharing options...
TheFilmGod Posted August 16, 2008 Share Posted August 16, 2008 * { margin: 0; padding: 0; } /* Use to this to reset ALL html tags to have 0 margin and padding */ Specify margin: 0; padding: 0; for your div/form tag. Lastly, if those things don't work, use negative margins... I'm against this, but it'll get the job done. :-\ Link to comment https://forums.phpfreaks.com/topic/119930-problem-getting-form-to-have-no-margin-no-padding/#findComment-618021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.