Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fixed Width For The Site  (Read 1778 times)

0 Members and 1 Guest are viewing this topic.

thenota2

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 81
Fixed Width For The Site
« on: January 30, 2018, 06:22:05 pm »

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

width: fixed;

doesnt work

Code: [Select]
.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: '';
}

Code: [Select]
<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>
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1163
Re: Fixed Width For The Site
« Reply #1 on: January 30, 2018, 06:37:03 pm »

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.
Logged

thenota2

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 81
Re: Fixed Width For The Site
« Reply #2 on: January 30, 2018, 07:12:07 pm »

thanks, i know ive used the fixed on other platforms, so it is a valid css value
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 23 queries.