Anyone knows how to center notification box in 2.x?
Thanks
Later edit. Resolved
[quote name=‘hmf’]Anyone knows how to center notification box in 2.x?
Thanks
Later edit. Resolved[/QUOTE]
Could you please share the solution you found? I’d like to know, too.
After poking around for a while, here’s what I came up with, though it displays notifications with a liquid width.
In styles.base.css:
.cm-notification-container {
position: fixed;
/*
right: 8px;
*/
top: 0px;
z-index: 16;
/* addition, begin */
width: 30%;
margin-right: 35%;
margin-left: 35%;
text-align: center;
/* addition, end */
}
.notification-content {
position: relative;
margin-bottom: 1px;
/* addition, begin */
width: 100%;
/* addition, end */
}
Great, thanks for that. I used slightly different position, but your info helped immensely.