Log in

View Full Version : Can Vbulletin adjust size based on client? iPad related


ggiersdorf
09-03-2011, 02:26 PM
I have a site where I used to have a fixed resolution 980px for my forum. However alot of users complained that they would like to have a more fluid size so I set the css to 85% of the screen and everyone loved it.

That was until some iPad users started complaining that it was to small now (ads overlapping etc.) So I was wondering if there is a way to do an IF THAN type of thing were if vbulletin determines your on the ipad it makes it a fixed size otherwise the site stays at a 85% of your screen size??

Any help would be appreciated.

Thanks!

Lynne
09-03-2011, 02:49 PM
Take a look at this on how to add a stylesheet just for ipad users - http://stackoverflow.com/questions/3839809/detect-iphone-ipad-purely-by-css

ggiersdorf
09-11-2011, 11:57 AM
Lynne I must be daft as I could not get that working properly. Maybe its more to do with what I am trying to accomplish. I dont want to change ANYTHING css except one simple command which I have set in the default Style Manager.

In my Body section I have defined an extra CSS that states:

margin: 0 auto;
width:85%;
background-attachment:fixed;
background-position:bottom;

It works fine however on the iPad the forum shrinks to 85% of the iPads screen size which is too small. I want that to change to 100% for iPad layouts if possible. I dont want to have to redefine an entire css style for one width statement, so I was wondering is there a way to include that "check" in the default style somehow? Maybe placing a custom CSS in the bottom Additional CSS rules?

Can someone please format it properly? I have been scratching my head on this one.

Thanks!