Henry, I see that you are not really using frames, and that the jmol.css is the relevant style sheet for the div styling being used. The styling all looks legal, funky, but legal. The class/id styling on the molecule div seemed in conflict at first, but then I realized it was all perfectly legal.
For centering the model better, try this in the load script: centerat boundbox; zoom 80; Select the zoom % that best fits your model. There is another funky issue going on in the iPad display of the models on your pages. Two finger gesture is at play in the model window. I don’t use gestures on my iPad models, so I could not cross check this on my pages. Accidental two finger action could be at play for part of what your seeing. About a year ago, I stumbled upon a great Mac web page styling application. It has a pretty steep learning curve, but once you have it under control, you can forget about styling and focus on scripting. Basically, it allows you to place draggle objects in any position that you want. Behind the scene, it is defining these as absolute divs, and writing cross browser CSS to put them exactly where you want them on the page. All you have to do is handle the scripting. Otis -- Otis Rothenberger o...@chemagic.com http://chemagic.com > On Aug 30, 2015, at 10:31 AM, Otis Rothenberger <osrot...@chemagic.com> wrote: > > Hi Henry, > > I use frames with iPad often, so I tried to look at your page. The style > sheet does not appear to have the correct path. I’m getting an error on the > CSS load when I load: > > http://employees.csbsju.edu/hjakubowski/Jmol14/HAAPBJmol/1xww_surfaceV1.htm > <http://employees.csbsju.edu/hjakubowski/Jmol14/HAAPBJmol/1xww_surfaceV1.htm> > > Otis > > -- > Otis Rothenberger > o...@chemagic.com <mailto:o...@chemagic.com> > http://chemagic.com > >> On Aug 30, 2015, at 9:52 AM, Jakubowski, Henry <hjakubow...@csbsju.edu >> <mailto:hjakubow...@csbsju.edu>> wrote: >> >> Hi, >> >> I’ve created lots of Jmol/Jsmol protein tutorial pages based on online >> tutorials from David Marcey. They all use frames. Here is my latest simple >> example in which there are buttons to either calculate or load premade >> surfaces. >> >> http://employees.csbsju.edu/hjakubowski/Jmol14/HAAPBJmol/1xww_surfaceV1.htm >> <http://employees.csbsju.edu/hjakubowski/Jmol14/HAAPBJmol/1xww_surfaceV1.htm> >> >> My major problem is that when the JSmol is view in a small screen (iPhone, >> iPad), the molecule does not display in the center of the left hand modeling >> frame, and it is always cut in half. I can resize it but it still only half >> shows up. I’ve tried simple changes in the code to change sizes, >> proportions, but nothing works. An IT person who helps me also can’t get it >> to change. Both http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info >> <http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info> >> andhttp://wiki.jmol.org/index.php/Jmol_PHP >> <http://wiki.jmol.org/index.php/Jmol_PHP> have info about using the width >> and height in the info variable to control the size of the molecule window. >> However nothing we do changes anything. >> >> I also have a resizing issue on the most simple of molecules. Again this is >> based on frames. >> http://employees.csbsju.edu/hjakubowski/Jmol14/EthaneStaggered/EthaneStaggered_NEW.htm?_USE=HTML5 >> >> <http://employees.csbsju.edu/hjakubowski/Jmol14/EthaneStaggered/EthaneStaggered_NEW.htm?_USE=HTML5> >> >> >> This molecule is small enough to be centered (sometimes), but the display is >> way to big (check it out on an iPhone) and I can’t change any code to shrink >> it. >> >> Is there a simple way to get frames to display the molecule in the center of >> the modeling window and of the desired size? >> If not, do I need to change all my tutorials and get rid of frames (which I >> know is somewhat outdated). If so would there be a simple online tutorial >> that would show me how to do this? >> >> Hopefully this is my only question of the year. >> Thanks >> >> Henry Jakubowski (a cut and paste Jmol code writer) >> Professor, Chemistry Department <http://www.csbsju.edu/chemistry/> >> College St. Benedict/St John’s University <http://www.csbsju.edu/> >> 241 Ardolf Science Center >> 37 S. College Ave. >> St. Joseph, MN 56374 >> O: 320.363.5354 >> F: 320.363.5582 >> E: hjakubow...@csbsju.edu <mailto:hjakubow...@csbsju.edu> >> W: http://faculty.csbsju.edu/hjakubowski >> <http://faculty.csbsju.edu/hjakubowski> >> Biochemistry Online: A Course Based on Chemical Logic >> <http://employees.csbsju.edu/hjakubowski/classes/ch331/bcintro/default.html> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net <mailto:Jmol-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> <https://lists.sourceforge.net/lists/listinfo/jmol-users> > ------------------------------------------------------------------------------ > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users