Dismissible Div is a container with a close button. Put any elements inside, place it in the page, stuck to the top or bottom, or fixed over the page, and choose whether a closed notice stays closed for the session, a number of days or for good.
The promo bar just below sticks to the top of the screen as you scroll through this section. The notices below sit in the page. Click a close button to dismiss a notice, then reload the page to see which ones remember it.
BREAD10. Ends Sunday.Placement Sticky Top with z-index 50, dark background, a 12px radius and a white close icon. It stays at the top of the screen while you scroll through these demos. Remember Dismissal is off, so it comes back when you reload.
Placement Normal, 360px wide, white with a border and a round grey close button. Remember Dismissal: For this browser session, with its own Notification ID.
Placement Normal, amber background and border, and a small brown close icon. Close it and reload: it stays hidden until you close the browser.
Orders placed after 2pm on Friday will be sent on Monday. Fresh bread orders are not affected.
Placement Normal, teal background, and a circled close icon on a white 30px button. Remember Dismissal is off, so it shows on every visit.
Wheel throwing for beginners, 10am at Kiln Street. Bring clothes you do not mind getting muddy.
Build it like any other container.
Drop Dismissible Div onto your page. It is listed as Dismissable Div in the Breakdance element panel.
Put headings, text, buttons or any other elements inside, and lay them out with the layout controls.
Choose where it sits, then choose whether a closed notice stays closed for the session, a number of days or forever.
The layout of a div, with the behaviour of a notice.
Normal in the page, sticky top, sticky bottom, fixed top or fixed bottom, with an offset from the edge.
It is a container, so any element can go inside and you arrange it with the layout controls.
Keep a closed notice hidden for the browser session, a set number of days or forever.
Give each notice its own ID so closing one never hides another.
Pick the icon, then set its size, colour, background, borders and position.
The notice stays visible while you edit, even if you dismissed it on the front end.
The close button can be reached with the Tab key and closed with Enter or Space.
Set the stacking order for sticky and fixed notices so they sit above or below other parts of the page.
Set the background colour, padding, width, corner radius and borders.
Any message a visitor should be able to close.
Show a discount code across the top of the page.
Explain what the site stores, and remember when a visitor has read it.
Warn shoppers about holiday cut-off dates.
Tell users about planned maintenance or a known issue.
Remind members about an upcoming class or webinar.
Point returning visitors to something new, once.
This is the full list of settings in the Breakdance editor, with their default values.
| Control | What it does | Default |
|---|---|---|
| Notification | ||
| Placement | Normal (in flow), Sticky Top, Sticky Bottom, Fixed Top or Fixed Bottom. | Sticky Top |
| Offset From Edge | Distance from the top or bottom edge for sticky and fixed placements. | 0px |
| Z-Index | Stacking order for sticky and fixed placements. | 100 |
| Show Close Button | Show the close button. | On |
| Close Icon | The icon used for the close button. | X |
| Remember Dismissal | No, For this browser session, For a number of days, or Forever. | No |
| Number of Days | How long to remember a dismissal when set to a number of days. | 30 |
| Notification ID | Optional unique ID so each notice is remembered on its own. | — |
| Layout | ||
| Layout | Direction, alignment and gap for the content inside. | — |
| Background | ||
| Background | Background of the notice. | #310467 |
| Container | ||
| Width / Min Height | Size of the notice, per breakpoint. | — |
| Padding | Space inside the notice. | 16px 20px |
| Borders | Border, radius and shadow. | — |
| Close Button | ||
| Size | Width and height of the close button, 12 to 64. | 28 |
| Icon Color / Background Color | Colours of the close button. | #FFFFFF |
| Offset From Right / Offset From Top | Position of the close button inside the notice. | 10px |
| Borders | Border and radius of the close button. | — |
In the visitor's browser. Session dismissals use session storage and end when the browser closes. Days and Forever use local storage. Nothing is sent to your server.
Each notice is remembered by its ID. Give every notice a different ID so closing one does not hide another. If you change the ID, visitors who closed the old notice will see it again.
Dismissals are ignored in the builder so you can always edit the notice.
Sticky stays in the page flow and sticks to the edge of the screen while its parent is in view. Fixed sits over the page and is always on screen until it is closed.
Yes. It is a container, so any Breakdance element can go inside.
That is the element's name in the Breakdance element panel. It is the same element.
Dismissible Div is included with Phox Elements, along with 140+ other premium elements for Breakdance.