Note that there are some explanatory texts on larger screens.

plurals
  1. POVariable width for the center div with fixed left & right div having transparent rounded corners images
    primarykey
    data
    text
    <p>I'm trying to display </p> <ul> <li>a variable width popup </li> <li>that will have rounded corners with transparent edges to match the background color.</li> </ul> <p>First I thought it was a simple rounded corner markup, but then the problem was with transparent background for the radius and the variable width of the popup.</p> <pre><code>&lt;css&gt; .c-dialog-rc-tl, .c-dialog-rc-tc, .c-dialog-rc-tr, .c-dialog-rc-bl, .c-dialog-rc-bc, .c-dialog-rc-br { background-color: none; height: 10px; } .c-dialog-rc-tl, .c-dialog-rc-bl { float:left; width:20px; } .c-dialog-rc-tl { background-position: 0 -30px; z-index:1005; position:absolute; } .c-dialog-rc-bl { background-position: 0 -43px; z-index:1004; position:absolute; } &lt;/css&gt; &lt;div class="c-dialog-rc-top"&gt; &lt;div class="c-dialog-image c-dialog-rc-tl"&gt;&lt;/div&gt; &lt;div class="c-dialog-image c-dialog-rc-tc"&gt;&lt;/div&gt; &lt;div class="c-dialog-image c-dialog-rc-tr"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>I tried the replies of this <a href="https://stackoverflow.com/questions/4414685/middle-div-take-up-remaining-space">answer</a> but didn't work. Please see the code at <a href="http://fiddle.jshell.net/cAQF8/" rel="nofollow noreferrer">jsfiddle</a>.</p> <p>I'll try to provide as much as information if the question is not clear but please don't downvote or delete the question. </p> <p>Has anybody solved this kind of problem, or know a better div layout or a css that will render such a requirement ?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload