Jump to content
php.lv forumi

CSS body mistiskais 8px


blondine

Recommended Posts

Mēģināji šādi?

html {
padding:0;
margin:0;
}
body {          border: 1px solid red;
       margin: 0px auto;
       padding: 0px auto;      
       text-align: center; /*center IE div*/
       font-family: Arial, Helvetica, sans-serif;
       font-size: 12px;
       color: #666666;
       background:#c4c0be url('images/body2.jpg');
}

jeb

body, html {          border: 1px solid red;
       margin: 0px auto;
       padding: 0px auto;      
       text-align: center; /*center IE div*/
       font-family: Arial, Helvetica, sans-serif;
       font-size: 12px;
       color: #666666;
       background:#c4c0be url('images/body2.jpg');
}

Link to comment
Share on other sites

wildcard nav īpaši labi izmantot. Developējot vēl var, bet pēcāk ir vēlams aizstāt ar ko konkrētu...

 

Nu jā, tas gan fakts. Pēc izstrādes, tad saskaiti (aptver) cik tagi tika izmantoti lapā un "make magic"; šādi:

 

body, div, span, p, h1, h2, h3 { margin: 0; padding: 0; }

 

P.S. BTW, šī nav pareizā sadaļa. Šis vairāk iederētos pie CSS tēmām. :P

Link to comment
Share on other sites

nezinu pageidam kapec, bet viens php inkluuds taisa to 8px padding, itkaa nevienaa no php failiem netiek izmantots kaads no html tagiem...

 

Nemeklē tagu, bet drīzāk kādu enter,space vai tab, kas ir ārpus <?php ?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...