html - Placing border-image bottom to a div -


i'm having problem floated elements want give background image @ end of box this:

+--------------------+    +-------------------+     +---------------------+ |                    |    |                   |     |                     | |                    |    |                   |     |                     | +--------------------+    +-------------------+     +---------------------+   ================           ==============            ================= 

but goes this:

=========================================================================== +--------------------+    +-------------------+     +---------------------+ |                    |    |                   |     |                     | |                    |    |                   |     |                     | +--------------------+    +-------------------+     +---------------------+ =========================================================================== 

i have used border property instead of image here. demo

here solution want achieve. modified css , html. check fiddle: http://jsfiddle.net/sarfarazdesigner/p7mbk/5/

css

.cf:before, .cf:after {     display: table;     content: " "; } .cf:after {     clear: both; } .cf {     zoom: 1; } .mainb {     width: 1000px; } .fleft {     float: left;     width: 300px; } .fright {     float: right;     width: 300px; } .midcol {     margin: 0 310px; } .cmnbrd {     border: 1px solid red;     margin-bottom:20px; } .spacer {     border: 1px solid gray;     border-top: 0;     background: blue;     height: 2px;     margin: 0 12px; } 

and html is

<div class="mainb cf">     <div class="fleft">         <div class="cmnbrd">             <h3>latuis congue estaer</h3>             <img src="" alt="" />             <p>cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. curabitur congue blandit diam sed ullamcorper. morbi vitae metus purus rhoncus egestas ac sit amet velit. sed ac eros eu tellus adipiscing consectetur ut mi. nunc imperdiet pretium metus ac auctor. </p>             <p class="alt"><a href="#">more</a></p>         </div>         <div class="spacer"></div>     </div>     <div class="fright">         <div class="cmnbrd">             <h3>latuis congue estaer</h3>             <img src="" />             <p>cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. curabitur congue blandit diam sed ullamcorper. morbi vitae metus purus rhoncus egestas ac sit amet velit. sed ac eros eu tellus adipiscing consectetur ut mi. nunc imperdiet pretium metus ac auctor. </p>             <p class="alt"><a href="#">more</a></p>         </div>         <div class="spacer"></div>     </div>     <div class="midcol">         <div class="cmnbrd">             <h3>latuis congue estaer</h3>             <img src="" />             <p>cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. curabitur congue blandit diam sed ullamcorper. morbi vitae metus purus rhoncus egestas ac sit amet velit. sed ac eros eu tellus adipiscing consectetur ut mi. nunc imperdiet pretium metus ac auctor. </p>             <p class="alt"><a href="#">more</a></p>         </div>         <div class="spacer"></div>     </div> </div> 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -