EggXpert

The official Newegg tech support community and Newegg tech support forums. Learn about PC building, case mods, computer repairs, and computer troubleshooting. Get help from knowledgable community members about computer hardware and computer software, laptops, notebooks, netbooks, consumer electronics & mp3 players, home networking, lcd TVs, home audio and more.
Welcome to eggXpert.com. Sign in | Join | Help
in Search
Advanced Search

Sidicas

EggXpert.com for Widescreen Displays!

Intro:  Many websites are made for maximum compatibility and as such don't really use the full resolution (horizontally) of your monitor. This is especially true if you're using a widescreen monitor, but may also be true on 4:3 ratios at higher resolutions.

Purpose:
This will teach you how to intercept the CSS code from the EggXpert webserver and make a small change to it so that the entire website will become more suitable for widescreen monitors. This technique will work on any website that is well written with CSS stylesheets. All that needs to be done is adjust a single property in the local CSS stylesheet and that will change the entire EggXpert experience which will apply to all eggxpert forums and blogs! The changes are only local to your computer...

Ok, here's where you need to pay attention. First, you need to decide if you just want to mess around or if you want the changes to be semi-permanent. If you just want to play around without any way to make your changes permanent, see PART A.

If you know you might want to make permanent changes, then see PART B

 

PART A:

For those who just want to play around with the eggxpert CSS with no possibility of saving their changes... 

 First, download and install firefox.
 Second, download and install the firefox plugin Realtime EditCSS
Third, visit the eggxpert forums 

Okay, here comes the part that gets a little tricky..

Right-click on the page and select "EditCSS"

Editing the CSS 

 Ok after clicking this, the CSS editor will apear on the left side of the screen.

 

You need to locate the pixel width property under "CommonOuter" and change it to a value that is suitable for your monitor. The default is 960 pixels! Might want to change it to 1280 or even wider!

The property that needs to be changed

 (Property highlighted above)

 After this, the eggxpert forums will now use the horizontal width of your monitor! But when you close down EditCSS, your changes will NOT be saved!

 

PART B:

For those who want to always view the eggxpert website in widescreen
We're going to create a file that is only used when visiting eggxpert.com and will override the default CSS of eggxpert.com

This part unfortunately is a bit more difficult than Part A..

 

Step #1 Locate your FireFox  profile directory.

There is a profile specific to each user login on your computer.
Start -> Run -> %APPDATA%

A window should appear, and in it are all your user specific settings. 

Navigate Mozilla -> FireFox -> Profiles -> .default -> chrome
"Chrome" is only if you're using the default FireFox theme. If you're using your own theme, then you will need to be in your profile directory for that theme.

In FireFox 2.0, use the Chrome directory, no matter what FireFox theme you're currently using. 

 In this folder, you should see a bunch of example files.

 

Step #2 Creating a CSS file with an entry that overrides the CSS on eggxpert.com 

 Create a new CSS file named userContent.css with the following contents:

@-moz-document domain(eggxpert.com)
{
  /* CSS rules here apply to:
     + Any page whose URL's host is "eggxpert.com" or ends with
       ".eggexpert.com"
   */

  /* Modify the width tag of commonOuter */
  #CommonOuter { width: 1200px !important; }
}

Note: The important tag specifies that we're going to override the CSS that is being received from the eggxpert webserver. This is necessary since we don't want to use the default width! Of course, change the width (in pixels) to whatever you want!! I'm using a 1280x1024 resolution monitor, and I found 1200 to be a nice choice.

Now you should have three files in the directory:  userChrome-example.css, userContent.css, userContent-example.css

 


Step #3 Restart FireFox and visit the eggxpert.com website 

 Unlike the EditCSS example above, you MUST restart firefox every time you make a change to the file.  This will be permanent and ONLY apply to eggxpert.com until you delete userControl.css

 

Step #4 Reverting back to normal
 Simply delete the userContent.css file that we created and restart Firefox. And Eggxpert.com will go back to the narrow page that it has always been.

 

Published Saturday, May 12, 2007 11:11 AM by Sidicas

Comments

 

TheLarrikin said:

There's an integrated CSS editor in Opera as well.

May 24, 2007 5:32 AM
 

bradfordferguson said:

awesome, thanks Sidicas!

May 24, 2007 6:33 AM
 

kevlarorc said:

grr. im doin somethin wrong. I think its cause im using a different theme.

I got to  Navigate Mozilla -> FireFox -> Profiles  (then some .default file). Then I see a chrome folder and in the extensions folder beside it it has my theme's folder called "redshift_V2@shift-themes.com" along with some other folders. And I didnt have any of this "userChrome-example.css,  userContent-example.css"

Sorry, new to this CSS thing.

May 24, 2007 9:45 PM
 

Sidicas said:

@kevlarorc

Are you using FireFox 2.0? I just tried the RedShiftV2 theme, and you don't have to worry about it.. Just proceed into the Chrome folder. You're correct, there is a mistake above where I mentioned the possibility of the directory being different for different themes.  This is not true..  If you're using FireFox 2.0 then you don't need to worry about your current theme. Always use the "Chrome" directory.  

May 25, 2007 1:11 AM
 

kevlarorc said:

hmm...went into the chrome folder and stuck the usercontent.css file in there but there are still none of those example files. In fact, the usercontent file is the only one in that folder. I looked through a whole bunch of other folders but still no sign of em. restarted firefox a coupla times but no luck.

May 25, 2007 10:28 AM
 

Sidicas said:

@kevlarorc are you running Windows XP or Vista? You *might* want to try a fresh install of firefox. It's strange that those files don't exist.  Have you tried doing a search on your entire hard drive for them?

May 25, 2007 5:37 PM
 

cxk297 said:

Nice article Sidicas. If anyone is using vista make sure the file saves as an .css not a text file because the settings won't work.  I had that problem saving via notepad. I used 1600 for the width I am using a 1680x1050 res.

May 26, 2007 12:19 PM
 

kevlarorc said:

well i found the example files and copied em into the chrome folder and then  tried saving the user made one into a CSS file but to no avail. about.com's tutorial on saving CSS files wasnt very helpful shall we say. (btw i just now noticed that newegg's site is already widescreened for me 0.o)

May 26, 2007 11:39 PM
 

Sidicas said:

@kevlarorc yea, this is for EggXpert not NewEgg.. NewEgg's website is already widescreen..  Where did you find the files? The userContent.css should be place in the same directory as the example files.. So wherever you found the example files, userContent.css was supposed to go there instead of moving the example files into the chrome directory :D

May 27, 2007 10:40 PM
 

Sidicas said:

@cxk297 Yea, you have to be careful that by default windows will hide file extensions for known file types.. So if you don't save it right, you might have a filename that looks like "userContent.css" but the .txt extension is hidden and the filename is really "userContent.css.txt" which will not work. Just a heads up for anybody who might run into that problem though I'm not sure it's related to cxk287's problem..

May 27, 2007 10:43 PM
 

cxk297 said:

To whom it may concern...

I just posted in the following thread regarding width adjustment:

http://www.eggxpert.com/forums/66538/ShowThread.aspx#66538

If you set the width to 100% it will dynamically adjust the website for viewing in the browser. It doesn't have to be set to a static pixel width.

May 30, 2007 7:57 PM
 

Sidicas said:

And as I pointed out in that thread, it has graphical glitches if you resize the window too small which is why I don't use it.

June 1, 2007 4:50 PM
 

CrAsHnBuRnXp said:

Thanks a lot for that tweak Sidicas. Im loving viewing this site at 1645 (1650x1080 screen res) Its a lot more enjoyable navigating teh site now.

To bad I couldn't get all websites do view like this.

@cxk297,

Try viewing this site at 1645. Looks really good.

July 4, 2007 8:47 PM
 

sjr said:

Works pretty slick.  Now running at 1900 width for the 1920x1200 res I am running at.  I am going to guess this works for other sites as well, to just change the eggxpert.com to another address?

August 11, 2007 11:15 PM
 

Sidicas said:

sjr: Unfortunately, it's a little more complicated than that..  If the other site uses CSS, then you'll need to find the entry in their CSS that controls the page layout and change them as necessary.. Because EggXpert is designed fairly well, it's very easy to change it with a small tweak.. Other sites may not work very well when changed and may also have strange graphical glitches if you mess around with the page layout like that.

September 28, 2007 8:10 PM
 

AsYLuMDeMoN said:

Thanks Sidicas! I'm a firefox person since we last spoke so this was of great use to me! :D

August 24, 2008 10:05 AM
Anonymous comments are disabled

About Sidicas

Boy/Man

 Home   Forums   Chat   Blogs   Deals   Newsletter   About 

 FAQ   Terms of Use   Privacy Policy   Contact Us 

©2009 Newegg, Inc. All rights reserved.