Fixed Width For The Site Fixed Width For The Site
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fixed Width For The Site

Started by thenota2, January 30, 2018, 06:22:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thenota2

ive been doing this for 10 years. how can i get a fixed width for the site

width: fixed;

doesnt work

.site-content,
.site-container {
width: fixed !important;
max-width: 1300px;
margin: 0 auto;
}

.site-content:before,
.site-content:after,
.site-navigation:before,
.site-navigation:after {
display: table;
content: '';
}


<div id="page" class="site">
<div class="site-container">
<h1 class="site-title"><a href="http://olsen-twins.net">Olsen Twins</a></h1>
<div class="site-tagline"><a href="http://olsen-twins.net">Mary Kate And Ashley Olsen Pictures</a></div>
</div>

ron4mac

One would think that somewhere in those 10 years you would have learned that 'fixed' is not a valid value for CSS width.
Just change max-width: 1300px; to width: 1300px; ... that makes it a 'fixed' width.

thenota2

thanks, i know ive used the fixed on other platforms, so it is a valid css value