OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



text-align css property causes problem?

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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

text-align css property causes problem?

Postby piotreba » Fri Mar 22, 2013 4:48 pm

Hello,


when I want to modify css style of the default layout and apply text-align property do the custom css style I get an error during submitting the css file: Invalid site stylesheet format. Accepted format is .css.
It only happened when this particular property was used: text-align (for example text-align: center; within #navbar).

Has anyone encountered a similar problem?
piotreba
 
Posts: 157
Joined: Mon Dec 13, 2010 3:29 pm

Re: text-align css property causes problem?

Postby asmecher » Fri Mar 22, 2013 4:54 pm

asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Re: text-align css property causes problem?

Postby piotreba » Fri Mar 22, 2013 5:22 pm

I read it, but it didn't help.


If I apply the css with only the following definition, the problem occurs:

#navbar {
border-bottom: 1px solid #CCCCCC;
color: #666666;
font-family: Tahoma, Geneva, sans-serif;
font-size: 18px;
text-align: center;
}

If I remove "text-align: center;" it is ok. I noticed that the problematic phrase seems to be "text".
I apply this css file via Site Administration > Site Settings
piotreba
 
Posts: 157
Joined: Mon Dec 13, 2010 3:29 pm

Re: text-align css property causes problem?

Postby asmecher » Fri Mar 22, 2013 5:33 pm

Hi piotreba,

OJS detects MIME types of files using one of three methods, depending on what's available: first PHP's fileinfo extension, then PHP's mime_content_type function, then the server's "file --brief --mime [filename]" command. Only files with "text/plain" or "text/css" types are accepted. These three methods tend to use the same technique in determining file types, called a "magic file" (see http://linux.die.net/man/5/magic for details). Investigate your phpinfo() to see which of the above three methods is likely to be used, and then investigate that method's configuration (http://php.net has lots of documentation) to find out e.g. what magic file it's using. That file might need updating.

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

Re: text-align css property causes problem?

Postby piotreba » Fri Mar 22, 2013 5:43 pm

If you meant default_mimetype then it is set to: text/html
piotreba
 
Posts: 157
Joined: Mon Dec 13, 2010 3:29 pm

Re: text-align css property causes problem?

Postby asmecher » Fri Mar 22, 2013 5:56 pm

Hi piotreba,

No, that setting isn't relevant to this problem.

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

Re: text-align css property causes problem?

Postby piotreba » Fri Mar 22, 2013 6:21 pm

Alec, could you please give some more hints regarding this problem? I study links you have provided, but I stuck...
piotreba
 
Posts: 157
Joined: Mon Dec 13, 2010 3:29 pm

Re: text-align css property causes problem?

Postby piotreba » Sun Mar 24, 2013 8:04 am

piotreba
 
Posts: 157
Joined: Mon Dec 13, 2010 3:29 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 5 guests