Note that there are some explanatory texts on larger screens.

plurals
  1. POhow do I prevent other elements from being affected by overflow hidden?
    primarykey
    data
    text
    <p>I have a parent element that has dynamic text in it that needs to be confined into a certain area. I had users that where writing sentences without using spaces (example:yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy etc...) This was breaking the structure of my styled text area. </p> <pre><code>#ProfileCommentBody{ width:500px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; margin:15px 0px 0px 20px; float:left; background-color:#EAF7FB; padding:10px 10px 10px 10px; position:relative; overflow:hidden;} </code></pre> <p>I used <code>overflow:hidden</code>,as you can see above in the css code, and it solved the problem but created a new problem. I have another another element that is a image that is absolutely positioned that completes the style of my speech bubble ( the above element is the speech bubble) and when I have the above element on <code>overflow:hidden</code> it make that image disappear. I have tried z-index and that does not work.</p> <pre><code>.ProfileCommentTail{background:url(images/speechBubbleTail.png) no-repeat top left; width:15px; height:10px; position:absolute; top:20px; left:-15px;} </code></pre> <p>Is there a different option to use besides <code>overflow:hidden</code> or is there something I can do to counteract the unwanted part of what the <code>overflow:hidden</code> is doing?</p> <p>html structure:</p> <pre><code> &lt;div id='ProfileCommentBody' class='round_10px'&gt; &lt;div id='CommentNameProfile'&gt; &lt;div class='ProfileCommentTail'&gt;&amp;nbsp;&lt;/div&gt; &lt;a href='http://www.blahblahblah.org/Profile.php?id=&lt;?php echo $poster-&gt;id; ?&gt;'&gt; &lt;?php echo $poster-&gt;first_name. " ". $poster-&gt;last_name; ?&gt; says... &lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Here is an example of an imgage of what it is doing now,which is wrong (missing speech bubble tail to the right of the polaroid, and the left of the speech bubble) overflow:hidden is causing this to disappear, but fixing another problem I was having: <img src="https://www.cysticlife.org/styles/images/missing_tail.png" alt="alt text"></p> <p>here is what it is SUPPOSED to look like, notice the tiny blue speech bubble tail connected to the speech bubble: <img src="https://www.cysticlife.org/styles/images/proper_tail.png" alt="alt text"></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.
    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