<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Redan Hassoun</title>
    <description>The latest articles on DEV Community by Redan Hassoun (@hassounredan).</description>
    <link>https://dev.to/hassounredan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F347284%2F43f2e487-54b6-4ae5-b531-f5a398913d53.jpg</url>
      <title>DEV Community: Redan Hassoun</title>
      <link>https://dev.to/hassounredan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hassounredan"/>
    <language>en</language>
    <item>
      <title>CSS - how to place a dropdown on top of a dialog ?</title>
      <dc:creator>Redan Hassoun</dc:creator>
      <pubDate>Tue, 14 Apr 2020 11:03:14 +0000</pubDate>
      <link>https://dev.to/hassounredan/css-how-to-place-a-dropdown-on-top-of-a-dialog-2i2a</link>
      <guid>https://dev.to/hassounredan/css-how-to-place-a-dropdown-on-top-of-a-dialog-2i2a</guid>
      <description>&lt;p&gt;Hi,&lt;br&gt;
I am quite new in CSS, and I am building an Angular application, on which I have a dialog popup for creating a Quiz. Inside that dialog, I have a form for providing the Quiz details,&lt;br&gt;
One of these details is the list of the users to assign the Quiz to:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nLCIDu6U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/yfp3id30xroe9iw0ku9j.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nLCIDu6U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/yfp3id30xroe9iw0ku9j.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to do this, I am using &lt;a href="https://ng-bootstrap.github.io/#/components/dropdown/examples"&gt;ng-bootstrap&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div id="user-selection-container" ngbDropdown&amp;gt;
    &amp;lt;button class="btn btn-outline-primary" ngbDropdownToggle&amp;gt;{{ getUserSelectionButtonText() }}&amp;lt;/button&amp;gt;
    &amp;lt;div id="user-selection-dropdown" ngbDropdownMenu&amp;gt;
        &amp;lt;app-users-chooser (selectedUsersChanged)="updateSelectedUsers($event)"&amp;gt;&amp;lt;/app-users-chooser&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The "app-users-chooser" is a component that displays the list of users to choose from.&lt;/p&gt;

&lt;p&gt;The issue is, when I open this drop-down, it appears "inside" the dialog:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eh2JOY2e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/an0dajtuxd3ccw8r1qfz.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eh2JOY2e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/an0dajtuxd3ccw8r1qfz.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How can I make this drop-down to appear in front of everything?&lt;br&gt;
I tried to change the z-index, but it did not help.&lt;br&gt;
And maybe there is a better way to achieve this (instead of ng-bootstrap elements)?&lt;/p&gt;

&lt;p&gt;I would be glad for any help\suggestions.&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
