Keyword

Aligning text in extra fields

More
12 years 4 months ago #63830 by agnesch
Hello,

I had the same need, applied your code and got the template working.

As a matter of fact, though, I need to have a mobile version of the website. I tried applying the built-in facility in the template I'm using (JSN Epic) and, as a result, I have the text all in one column of the width of a letter... How can I solve the problem?

You can see what it looks like from the attachment.
Attachments:

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #63831 by Silvio Baričević
Replied by Silvio Baričević on topic Re: Aligning text in extra fields

William White wrote: this may not be the best way to do it but it will work.
Create an override (SEE DOCUMENTATION)
edit item.php
in 2.5 goto line 259
wrap the span containing extra field value with
<div style="text-align: left;margin-left:200px;word-wrap: break-word;">
and put </div> at the end of the same line

this will make a text area and a text field both wrap to the same spot


Perfect solution. I was looking for something like this one. :) Thank you!

Please Log in or Create an account to join the conversation.

  • Coptechs
  • Coptechs's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 2 days ago #63832 by Coptechs
Replied by Coptechs on topic Re: Aligning text in extra fields
William-

It appears that the upgrade to K2 caused this nice little trick you showed me a few months ago to stop working. Any thoughts?

Brian

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum