<div style="width:400px;height:400px;border:1px solid black; margin:0px; padding:0px;"><ul style="border:1px solid red; height:200px; width:200px; margin:0px; padding:0px;"></ul><div style="width:100px;height:100px;border:1px solid blue; margin:0px; padding:0px;"></div>
In the code above, the ul element displays with a margin-left of ~40px, despite having its css style with "margin:0px". Interestingly, without this style it also displays with a margin-bottom, but this is removable with css styles.
|