For some reason, my “please choose a file to upload” message is being justified and stretched across the module position, rather than displaying left-aligned?
@Morrolan. Thanks for posting. Could you email me a link so I can see the page that you are referring to? I don’t understand what is going on from your description, but if I can see it, I may be able to assist you. Also, please let me know which browser you are viewing the page with.
@Morrolan. Thanks for providing the login information. I had a look at the site. Basically, it is a CSS issue. You can address it in several ways. Apparently the “text-align” property for the html label is defaulted to “justify” instead of “left“. You can inspect the CSS by right clicking on the text and selecting “Inspect Element”. It is similar to looking at javascript errors, except that you are looking at the DOM tree for the page and the related CSS.
Anyways, to fix it, you have two options. You can add a block in your template’s CSS file similar to:
1
2
3
4
label<br/>
{<br/>
text-align:left;<br/>
}
Or, you could edit the default.php file in modules/mod_easyfileuploader/tmpl and go to line 19, and change “<label for” to “<label style=”text-align:left;” for“
There are your choices. Let me know how it works out.
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘How to display custom defined "Choose a file…" message NOT justified text?’ is closed to new replies.