Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26751

    <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.

Viewing 1 post (of 1 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.