Hi!
Entweder bin ich dumm oder mein pc schrott ....
Die Sache die ich jetzt als prob. hab klappte sonst immer.
Also:
Ich möchte mit Padding in einem div ein wenig den Text ausrichten aber plötzlich richtet sich der div mit aus:
mein Code:
css:
Code
#inhalt
{
position:absolute;
border-top: 1px solid grey;
border-bottom: 1px solid grey;
top:200px;
left:241px;
max-width:520px;
max-height:400px;
min-width:520px;
min-height:400px;
background-color:#333;
padding:30px;
}
Alles anzeigen
html
Code
<div id="inhalt">
„Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
Wenn ich jetzt den div z.b. bei padding steigere dann wird der div größer - mach ich padding kleiner wird auch der div kleiner. erst hatte ich ganz normal width und height aber jetzt hab ichs mal mit max und min probiert aber das selbe problem.