You are viewing the PKP Support Forum | PKP Home Wiki

[SOLVED] Uploaded custom *.css breaks basic layout

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

[SOLVED] Uploaded custom *.css breaks basic layout

Postby istoyanov » Thu Nov 08, 2007 10:29 am

After uploading a custom *.css file with only some color values changed, I've noticed that the contents of some pages moved to the left, leaving virtually no space between the text and the browser window (see the second screen-shot below). These pages are in particular the pop-up windows showing "Journal Help", the various "Reading Tools" and the frame-split page showing the abstract/HTML galley + RT.

Here's a screen-shot of the layout with the original common.css:

... and here's the same with the modified one (it is interesting, that the window can't be resized, al least in Firefox):

I'd appreciate any hints on how to fix the appearance of the mentioned OJS components to match the original ones.
Last edited by istoyanov on Tue Nov 13, 2007 5:47 am, edited 1 time in total.
Posts: 44
Joined: Mon Oct 29, 2007 6:04 am

Re: Uploaded custom *.css breaks basic layout

Postby asmecher » Thu Nov 08, 2007 11:09 am

Hi istoyanov,

Are you uploading a modified version of common.css? This will cause layout problems because it overrides other styles that are conditionally included based on what part of the site you're viewing. This won't happen if you selectively override styles rather than including the entire common.css file along with your modifications, since the original common.css file is included anyway.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Uploaded custom *.css breaks basic layout

Postby istoyanov » Mon Nov 12, 2007 10:29 am

Thanks, Alec, that did it! :D
Posts: 44
Joined: Mon Oct 29, 2007 6:04 am

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests