CSS Padding streikt.

  • 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:

    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.

  • ehrlich gesagt ne verdammt gute frage ^^

    entweder ( würd ich machen )

    Code
    max-width:520px;
    max-height:400px;
    min-width:520px;
    min-height:400px;


    macht für mich eh kein sinn zweimal das gleiche ? 8|
    auf jedenfall würd ichs auf das ändern :

    Code
    width:520px;
    height:400px;


    oder dann noch

    Code
    overflow:yes;

    wars glaub , damit bekommt dein div auf jedenfall nen scrollbalken .... und dann sollte das kein problem sein ...