Jump to content
TNG Community

Constrain Width


Paul Barrett

Recommended Posts

Paul Barrett

I am experimenting with a test environment using Template 18

This template, and every other that I have tried, goes full width which, on my 27 in 2K monitor is way too much.

How do I create a boxed layout of say 1000px please?  I have a look around this forum and the Wiki but haven't found anything thus far

Thanks folks

Link to comment
Share on other sites

Isn't that something that you'd let your users decide?

Just because a window can be stretched to full width on a 27" display doesn't mean that all your users would do that.

I rarely make browser windows full width on my 24" displays, even though it's handy for viewing some things like Ancestry.com charts on.

But if you define a max width of say 1,000 px then you'll frustrate those people who wish to view things at say 1200 or 1600.

Roger

Link to comment
Share on other sites

Paul Barrett

Hi Roger

Thanks for your reply.

I agree, to a point.  I use Windows split screen mode all the time.  But TNG content is, in very many cases, not best when rendered at full screen width, for example  "Notes".  This is much more difficult to scan:

Snag_53ce1fd.png

On my WordPress TNG site the width is constrained by the WordPress setting.  There's a good reference point.  WordPress allows  boxed content if the owner wants to use it .  Even this forum uses boxed content (Approx 1630px)

I'm just experimenting.  Is there a way to do it please?

Link to comment
Share on other sites

Newfloridian

Hi Paul

I think you need to be looking for a class called .page, either in genstyle.css or in templatestyle.css **

If I remember correctly, back in the days of TNG4 or 5, the width of the page was restricted to 700px to make it conform to the average monitor screen dimensions of 800 x 600

I have always used template 4 and in later incarnations and larger screen dimension, the page became stuck in the middle of the screen with very wide blank margins.  

** Might be wrong here as I don't use TNG12 and I long ago changed to using percentages rather than fixed measurements! 

Good hunting

Alan

Link to comment
Share on other sites

Paul Barrett

I could not find that class in Template 15, but I did in 4

.page {
    background-color : #FFFFFF;
    margin-top: 0px;
    text-align:left;  /* added to replace style="text-align:left" in 6.2.0 */
    margin-right: 0px;
    border-collapse: collapse;
    padding: 0px;
    width: 100%;   /* to center, change to 900px or 90% */
}

 

So I created an entry in template 4 mytngstyle.css and changed the width value but it didn't work, even with Ctrl+F5.  Did I do the wrong thing?

Link to comment
Share on other sites

Paul,

The implest solution is to not run your browser in full screen mode.  Remember if you change the constraints in the template you are impacting everyone who access your site not just you. 

Link to comment
Share on other sites

Paul Barrett

Thanks Ken.  Yes, I hear what you're saying.  I routinely run my monitor in split screen mode 2 x 1280 wide.  I am just experimenting.

Link to comment
Share on other sites

Paul,

If you are going to experiment, then you should look at using screen size conditional such as the following used for smart phones

@media only screen and (min-width:320px) and (max-width:680px) {

but in your case where the screen widths are larger than normal 1920.  Overrides should also be  implemented in you templateN/mytngstyle.css

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...