MediaWiki:Common.css: Difference between revisions

From Wood Grading
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
.iframe-container {
.iframe-container {
   display: flex;
   display: flex;
   justify-content: center; /* Horizontally centers the content */
   justify-content: center; /* Centers horizontally */
   align-items: center;    /* Vertically centers the content (optional) */
   align-items: center;    /* Centers vertically */
  width: 100%;            /* This is the key. Make the container fill the full width. */
  min-height: 100vh;      /* This ensures the container is at least the height of the viewport. */
}
}

Revision as of 01:44, 16 September 2025

/* CSS placed here will be applied to all skins */

/*   starting from this url, https://simplywoodgrading.com/mediawiki/index.php/MediaWiki:Common.css */

/* give it a go Peter */


.center img:hover {
  cursor: pointer;
}

.iframe-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;    /* Centers vertically */
  width: 100%;            /* This is the key. Make the container fill the full width. */
  min-height: 100vh;      /* This ensures the container is at least the height of the viewport. */
}