html - Adjustment of Border in CSS -


i want border of div less width of div. how implement in css?

following image give more clarity:

http://imageshack.us/photo/my-images/440/divkr.jpg/

this not possible plain css.

you use 2 div's effect.

<div class="outer"> <div class="inner">      text  </div> </div>​  .outer {     background-color:blue; padding:20px;     width:200px; }  .inner {     border:solid 1px white;     height:150px;     color:white; } 

http://jsfiddle.net/rreth/

http://jsfiddle.net/rreth/1/


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -