Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How to center notification box? Rate Topic   - - - - -

 
  • hmf
  • Junior Member
  • Members
  • Join Date: 01-Feb 08
  • 19 posts

Posted 19 August 2009 - 09:49 PM #1

Anyone knows how to center notification box in 2.x?

Thanks

Later edit. Resolved

 
  • Herbaria
  • Member
  • Members
  • Join Date: 19-Jun 08
  • 105 posts

Posted 03 October 2009 - 05:15 PM #2

Anyone knows how to center notification box in 2.x?

Thanks

Later edit. Resolved


Could you please share the solution you found? I'd like to know, too.
Scott Quinby
http://www.HerbariaSoap.com
CS-Cart version 4.2.1

 
  • Herbaria
  • Member
  • Members
  • Join Date: 19-Jun 08
  • 105 posts

Posted 03 October 2009 - 07:32 PM #3

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 */
}

Scott Quinby
http://www.HerbariaSoap.com
CS-Cart version 4.2.1

 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 769 posts

Posted 09 November 2009 - 10:23 AM #4

Great, thanks for that. I used slightly different position, but your info helped immensely.