Prova att nollställa alla paddings och margins genom att lägga till detta i stilmallen:
* {margin:0px; padding:0px;}
HTML & CSSur HTML, XHTML & CSS
1 svar · 311 visningar · startad av LenaFena
När jag skapar runda hörn i botten på en box enligt följande:
<head>
<style type="text/css">
<!--
#container {background: #cccccc;}
.roundtop {background: #ffffff;}
.roundbottom {background: #ffffff;}
.r1{margin: 0 5px; height: 1px; overflow: hidden; background: #cccccc;}
.r2{margin: 0 3px; height: 1px; overflow: hidden; background: #cccccc;}
.r3{margin: 0 2px; height: 1px; overflow: hidden; background: #cccccc;}
.r4{margin: 0 1px; height: 2px; overflow: hidden; background: #cccccc;}
.content {padding: 10px;}
-->
</style>
</head>
<body>
<div id="container">
<div class="content">Innehållet i boxen här...</div>
<div class="roundbottom">
<div class="r4"></div>
<div class="r3"></div>
<div class="r2"></div>
<div class="r1"></div>
</div>
</div>
</body>
så får jag en vit linje mellan innehållet och fältet med de runda hörnen.
Kan någon berätta hur blir jag av med detta vita fält?
Prova att nollställa alla paddings och margins genom att lägga till detta i stilmallen:
* {margin:0px; padding:0px;}