- From: <bugzilla@jessica.w3.org>
- Date: Wed, 21 Sep 2016 09:35:49 +0000
- To: public-css-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29840
Bug ID: 29840
Summary: Margin top Bug in body
Product: CSS
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Box model
Assignee: bert@w3.org
Reporter: akhilkjuliyan@gmail.com
QA Contact: public-css-bugzilla@w3.org
Target Milestone: ---
Created attachment 1655
--> https://www.w3.org/Bugs/Public/attachment.cgi?id=1655&action=edit
body bg color is red and wrapper color is white. i have a haeder class inside
wrapper a. and its has a margintop 100px . But wrapper also getting a margin
top 100px. padding instead of margin works fi
<!DOCTYPE html>
<html>
<head>
<style>
body{
background-color: red;
margin: 0px;
height: 100%;
}
.wrapper{
background-color: #fff;
height: auto;
display: block;
vertical-align: top;
}
.header{
margin-top: 100px;
display: block;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="header">jjj</div>
<div class="content">lll</div>
</div>
</body>
</html>
i have applied margin top only to header class but wrapper also getting a
margin
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 21 September 2016 09:35:57 UTC