A downloadable project

Download NowName your own price

Would you like to center everything in your page like you see here? 

By inserting the CSS code below into your page, all your page content will be centered


Here is an example of Table of Contents Centered

CenterTheTableContents
CenterTheTableContents
CenterTheTableContents


Here is the CSS code for the current Page

(Table of contents, Headers, Download Bt, Comments, DevLogs, etc)

----



/* === Main Wrapper === */
#wrapper
/* === Header === */
div#header {
  text-align: center;
}
.header.has_image.align_left {
  text-align: center;
  padding-top: 20px;
}
/* === Layout Columns === */
#wrapper .columns {
  text-align: center;
  flex-direction: column-reverse;
}
#wrapper .left_col,
#wrapper .right_col {
  width: auto;
}
/* === Video === */
#wrapper .video_embed {
  max-width: 300px;
  margin: 20px auto;
}
/* === Buy Section === */
.buy_row {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;
}
.header_buy_row p,
.sub,
.uploads p,
.upload_list_widget {
  display: none;
}
/* === Tables === */
table {
  display: inline-block;
}
.user_formatted table {
  border: none;
  border-color: #ffffff00;
}
/* === Community / Comments === */
.community_post_form_widget {
  margin-left: auto;
  margin-right: auto;
  width: 40em;
}
.community_post_list_widget {
  display: inline-grid;
  text-align: left;
}
.click_input {
  text-align: center !important;
}
/* === Images === */
img.screenshot {
  display: inline !important;
  padding: 5px;
}
/* === Buttons === */
.toggle_info_btn {
  position: inherit;
}
/* === Center Devlog === */ 
.view_game_page .game_devlog ul li {     
margin: 0 0 5px 0;     
display: block !important;   /* Override flex */     
text-align: center;     
align-items: unset !important; 
}
/* === Embedded YouTube Button === */
button.embed_preload.youtube_preload {
  width: 100% !important;
  height: auto !important;
  background-position: center !important;
  aspect-ratio: 900 / 481;
}


Here is the HTML code for Youtube Video Preview so it stays as big when clicked!

Note, change the video embed ending for your own video!

----


</p><p><br></p><p><br></p>
<div class="video-container">
  <iframe allowfullscreen="" frameborder="3" src="//www.youtube.com/embed/77QR5JAvmXE" height="481" width="900"></iframe>
</div>


StatusReleased
CategoryOther
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorVerzatileDev
Tagscss, guide, html, itchio, media, No AI, project, social, sourcecode, tool

Download

Download NowName your own price

Click download now to get access to the following files:

CenterCssOnProjectPage.txt 1.4 kB

Development log

Comments

Log in with itch.io to leave a comment.

This is funny

If you say so, hope it helped or something like that.

Here is an example for https://elvgames.itch.io/game-sound-effects-monster-pack-1 that uses the same formating for CSS

Currently Development Log has issues, going to fix that

Reviving this idea and project

This content is the most centered page on itch.io most likely see more on how to do it by inspecitng code :)

(+1)

Nice, thanks, as a creator of assets, I never realized there was a css option, I may have to rethink my page designs

(1 edit) (+1)

Feel free to spam more messages as I'm testing out my new ideas and features. Also no problem make sure to watch my videos! Going to make a lot more for more complexx stuff. First click on the second video to get you access on the Css :)

test

(10 edits)

Testing  it a bit     it a bit longer so I can test it even more of course it a bit longer so I can test it even more of course