Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fixed Width


bobsi18

Recommended Posts

Posted

Hi all... yet another question :)

I've been playing around with fixed width for my site and aren't really happy with it. At the moment, I have my site set to width=770, which displays well on my low res monitor, ok on my medium res moitor and tiny on my widescreen, which really annoys me, because there's so much room, but the site is all squished into a tiny little box...

 

I understand why it's needed, to make everything look in place, but I'm beginning to think it would be better if I could set up 2 'sites' - one for low res screens which would show a fixed width of 770 and one for high res screens which would show a fixed width of say 1000... all set off by an if statement, which determines the resolution of the customers screen.

 

Is this at all possible? Do you understand what I'm trying to get at? I've been searching and searching and haven't really found anything like it, this might be another of my crazy ideas that doesn't exist...

 

Anyway, suggestions and (hopefully) solutions would be very much appreciated!!!

 

Thanks again,

~barbara~

Posted

You would need to use Javascript to determine the user's resolution. The catch is that a lot of user's have Javascript disabled.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Barb,

 

I asked the same question a few days ago without really getting an answer.

 

In FireFox and IE, I have loads of background space, but in AOL (since the default window size is small), I get a horizontal scroll bar.

 

Is this something one can't help anymore these days? Do I make the fixed width for the FF and IE browsers and to heck with smaller browser screens such as AOL?

 

Getting an answer to this will help me determine what and how much to put on the index page of the store (have some ideas that won't work for small browser screens like AOL).

Posted

You probably did not receive an answer because the choice of a fixed-width site vs. a variable-width site is totally personal and up to the owner of a store.

 

I personally always use a variable-width store to accommodate my users the best that I can.

 

By using fixed-width you are in essence forcing your users to a specification you have set. Most users do not mind adjusting their browser for those settings but some do.

 

In the end though, that is a decision that you have to make and live with either way.

 

I know that isn't much help and I apologize for that. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Well, no, Jim - your answer answers my question. It may not be the one I was hoping for, but after thinking about it - it's a correct one.

 

I'm still a novice/beginner in relation to website building and am not sure what the majority of interenet users use for browsers - I guess go by the majority - which are browsers like FF and IE I suppose.... Us AOL users will just have to suffer with a horizontal scroll bar. *grins*

 

Thank you!

Posted

Maybe put a link to firefox on the main page with some text stating why firefox is best to use(there are a million and one reasons easily!)? Just a thought--and you can use firefox right? Or do you choose to use aol?

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Posted

Yes, I do have FF and IE on my computer. I use AOL mainly cause everything is in one screen...just a personal reference ... But I do have my site open in FF so I can view changes right away. AOL doesn't refresh changes too well.

 

I got my site width set for FF/IE. Not sure I like a plain background though. Hmmm. What is the syntax to add a background that is an image/file for the stylesheet? I am new to stylesheets, so am not familiar with the syntax for most instances.

 

I've seen links to FF as you suggested....sounds like a good ider. Thank you!

Posted

THIS explains the css background functions pretty well. :thumbsup:

 

Yes, I do have FF and IE on my computer. I use AOL mainly cause everything is in one screen...just a personal reference ... But I do have my site open in FF so I can view changes right away. AOL doesn't refresh changes too well.

 

I got my site width set for FF/IE. Not sure I like a plain background though. Hmmm. What is the syntax to add a background that is an image/file for the stylesheet? I am new to stylesheets, so am not familiar with the syntax for most instances.

 

I've seen links to FF as you suggested....sounds like a good ider. Thank you!

Posted

You can use Amanda's BRR contribution to set the width depending on the browser resolution. If the client would have JS disabled it will default to e.g. 760px, or whatever width you want it to.

Posted

Wow, thanks for all the responses!!! It really has been annoying me...

You can use Amanda's BRR contribution to set the width depending on the browser resolution. If the client would have JS disabled it will default to e.g. 760px, or whatever width you want it to.

You know, I thought I'd seen something about it somehwere, and that's it, I saw that contribution while searching for something, filed it away in the back of my mind an promptly forgot about it! I'll take a look at it...

 

I'm still a novice/beginner in relation to website building and am not sure what the majority of interenet users use for browsers

Just as a side note - I recently changed hosts and now have awstats (amazing stuff, I spend most of the day glued to the stats, they're awesome!). Anyway, the site that they're watching is an established site, but the stats have only been running for about 3 weeks (154260 hits). These are the stats for what browser people are using...

 

MS Internet Explorer 87.1 %

Firefox 8.4 %

Safari 2.7 %

Mozilla 0.6 %

Netscape 0.4 %

Opera 0.2 %

Unknown ? 0.1 %

K-Meleon 0 %

Konqueror 0 %

Links 0 %

Others 0 %

 

The most popular by far is MSIE 6.0 (84.3%)

 

Thanks all!

Posted

Well, I've found some infor about someone using javascript to fetch the stylesheet (http://www.oscommerce.com/forums/index.php?showtopic=191860&st=0&p=785223entry785223), and I think I'm going to go down that path... Just one question for all the guru's out there - I have very little experience in javascript, and was wondering how do you deal with people who don't have it enabled. Is there a possibility to do a 'if enabled-->use this script, else use this stylesheet'?

 

Thanks for any advice!

 

~barbara~

Posted

Thank you also for everyone's responses. I have Awstats in my cPanel, but totally forgot aobut it. D'oh!

 

Be of luck to everyone!

Posted

The AOL browser (although rubbish) is based on Mozilla code, so should behave similar to other Mozilla based browsers. Which fixed width contribution were you using? If you are using my Fixed Width Site With CSS contribution then you can set a background colour or image outside of the main web page, and it's been tested and works with IE, Firefox, Mozilla, Safari, and Konqueror browsers.

 

Vger

Posted

Rhea,

 

Just looked - yes, I am using yours. Silly me, I never do full screen in AOL. I did put my store at full screen and yes it does look like it does when viewed in FF. So, there is no problem on my part.

 

Sorry, my brain is mush - have so much on my plate right now that I've forgetting bits and pieces.

 

Thanks to the above CSS reference link I was given, I now know how to add an image as a background in CSS. Now, to find a suitable background for my store. hmmmmmmmmmmm.

 

Again, thank you for everyone's help. Love learning new things! And being reminded of the basics LOL.

Posted
Well, I've found some infor about someone using javascript to fetch the stylesheet (http://www.oscommerce.com/forums/index.php?showtopic=191860&st=0&p=785223entry785223), and I think I'm going to go down that path... Just one question for all the guru's out there - I have very little experience in javascript, and was wondering how do you deal with people who don't have it enabled. Is there a possibility to do a 'if enabled-->use this script, else use this stylesheet'?

 

Thanks for any advice!

 

~barbara~

Well, I found another option, I think it's the way to go for me, just posting a link in case anyone else is interested...

http://www.oscommerce.com/forums/index.php?sho...96entry870396

good luck to all!

~barbara~

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...