How to set fixed page width? (Ex. majornelson.com)

rated by 0 users
This post has 8 Replies | 2 Followers

Not Ranked
Posts 12
Points 210
davemcewen Posted: Mon, May 22 2006 4:03 PM

Good day to you all.

I've asked this question in a few other posts, but have not been able to get an answer, so I thought I'd create my own post about it.

Question:  How do I set the page width?  I want all pages on my site to have a standard width and not re-size according to users browser width.  Check out majornelson.com for an example of what I mean.

I was pointed by a few people to themes/default/styles/common.css, but themes/default/style is an empty folder on my installation: common.css is not there to edit.

Control panel tells me I am running version 2.0.60404.2676.

My access to back end databases is somewhat limited on my server - I can get access, but only for very small amounts of time.  I need to know what to look for and exact instructions (I am not an asp.net or SQL guy by trade) before I start.

Thanks in advance for any help.

  • | Post Points: 20
Not Ranked
Posts 12
Points 210
Here's another example:  The communityserver.org home page.
  • | Post Points: 5
Top 100 Contributor
Posts 192
Points 2,630
madkidd replied on Mon, May 22 2006 6:35 PM

That is very strange that the "/themes/default/syles/" folder is empty. Are they possibly hidden? Did you do the installation of CS?

If that folder is indeed empty what you'll want to do is download the web installer of CS2.0 and extract it to a temp directory and get the .css files out of the "/themes/default/syles/" folder. Once you have done that you'll want to remove this from the #common of common.css...

width: auto;
margin-left: 35px;
margin-right: 35px;

Now add something like this:

width: 933px;
margin-left: auto;
margin-right: auto;

 

You can see that I've done this at http://AskaChef.org -- If you need further assistance let me know.

Not Ranked
Posts 12
Points 210

Thanks - I'll try it.

You're the askachef guy?  Excellent - it was your site that made me decide to go with CS instead of other products.  I use your site and majornelson as guides for my inexpert stylings.

In fact, I guess you just asked my sister to become one of your house chefs - she blogs on livejournal as Pshort.

I'll get back ASAP with how this went.

  • | Post Points: 20
Top 200 Contributor
Posts 130
Points 1,595
dsmay replied on Mon, May 22 2006 8:35 PM
Check out this link
  • | Post Points: 20
Not Ranked
Posts 12
Points 210
davemcewen replied on Tue, May 23 2006 11:49 AM

Found another installation on the same server, found the same directory, copied the files that were there to my directory, edited the file as explained above, and everything works great now.

Thanks for the help, guys.

  • | Post Points: 20
Not Ranked
Posts 2
Points 10
coryjones replied on Wed, May 24 2006 6:01 PM

My first post!:

so i am using visual web developer to create my own browser for all of my websites (i don't want to buy a domain name, and i only broadcast on a LAN, but my friends don't want to type ip addresses...) but when i add a webbrowser control and point the url to my installation of communityserver forums, it displays really largely and i have to scroll to see the right half of the page.  it looks just like I am browsing it with my IE text size set to "Largest".  Will editing the css to a fixed width solve this?  i have been doing so much coding recently that i have learned a lesson...if help is available, ask questions before you meddle;  it might never be the same again.

i did meddle a little bit and set the BODY csstag to width: 100%, but that didn't solve it, and i removed it.

otherwise my app is working beautifully.  and i checked out this askachef.org site and it looks really nice, btw.

 

cory

  • | Post Points: 5
Not Ranked
Posts 2
Points 10
coryjones replied on Wed, May 24 2006 6:10 PM
coryjones:

it looks just like I am browsing it with my IE text size set to "Largest". 

when i went into IE and set my text size to "Medium", closed it, and then reopened "my" browser, it was fine.  i am truly confused.  i had no idea that setting view sizes in IE would set that for my whole computer.  am i missing something here?  i thought that the text size on IE was app specific, not global, but i tested it on two computers and that was the fix.  set your IE text size to default and it will work just fine.  Sorry to waste your db space with these two posts, but hey maybe someday someone will need this same thing, right?

all right, now i'm off to customize my communityserver experience.

thanks for this great project, btw.

cory

  • | Post Points: 5
Top 500 Contributor
Posts 62
Points 970
UtahJones replied on Wed, May 31 2006 5:30 PM

Thank you for this information. I was looking for the same help in terms of restricting the size of main content area so that it does not expand on higher resolution/larger monitors. I did a review of some major websites including myspace.com to see how they handled the display. They do not allow the content to expand, but the body is allowed to expand.

Thank you for helping.

 

 

David
  • | Post Points: 5
Page 1 of 1 (9 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com