Jump to content
php.lv forumi

no 2 diviem izveidot tadu ka rami


vitao.web

Recommended Posts

tas tachu ir elementaari:

 

<div class="wrapper">

<div class="inner">

<p>kkaads texts</p>

</div>

</div>

 

.wrapper{

padding:4px;

margin:0 auto;

width:1000px; /* vainu cik tev tur vajag */

background:red;

}

.inner{

background:green;

height:200px;

padding:10px;

}

 

bet vispaar izskataas, ka tev vajag veel vienkaarshaak:

 

.wrapper{

padding:10px;

margin:0 auto;

width:1000px;

height:200px;

background:#green

border:4px solid #F00;

}

Edited by Evi
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...