Keyword

Aligning text in extra fields

  • Coptechs
  • Coptechs's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #63820 by Coptechs
Aligning text in extra fields was created by Coptechs
I am using a few extra field that use the textarea type with the HTML editor. I've noticed that if I type too much for one line, the line wraps and the next line starts underneath the extra fields title as opposed to the indented location of where it started and it looks kind of funny. Can anyone tell me how to get the text to wrap so that the first letter of all the lines of text line up under that initial line of text?

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

More
12 years 6 months ago #63821 by Aaron
Replied by Aaron on topic Re: Aligning text in extra fields
In the template, wrap the field results in its own DIV tag. That should prevent wrapping under the field name.


Aaron :)

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

  • Coptechs
  • Coptechs's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #63822 by Coptechs
Replied by Coptechs on topic Re: Aligning text in extra fields

Aaron wrote: In the template, wrap the field results in its own DIV tag. That should prevent wrapping under the field name.


I'm not much of a developer/programmer, are you referring to something in the template.css file or the .php file?

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

More
12 years 6 months ago #63823 by william white
Replied by william white on topic Re: Aligning text in extra fields
he is referering to the php file which may be an override

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

  • Coptechs
  • Coptechs's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #63824 by Coptechs
Replied by Coptechs on topic Re: Aligning text in extra fields

William White wrote: he is referering to the php file which may be an override


Sounds a little out of my league as I don't know PHP. If it is just a matter of putting a <div> around some code though, if I know what to look for I could probably handle it. I'd have to know which PHP file... the template.php or k2.php and what code to look for to put in the <div>.

Unless there is an easier way to do it somewhere in the CSS maybe?

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

More
12 years 6 months ago #63825 by william white
Replied by william white on topic Re: Aligning text in extra fields
please post a link to the live site if avaliable

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

  • Coptechs
  • Coptechs's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #63826 by Coptechs
Replied by Coptechs on topic Re: Aligning text in extra fields

William White wrote: please post a link to the live site if avaliable


I just sent you an email with the link. Thanks for your time.

Brian

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

More
12 years 6 months ago #63827 by william white
Replied by william white on topic Re: Aligning text in extra fields
i have demo running see your email

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

More
12 years 6 months ago #63828 by william white
Replied by william white on topic Re: Aligning text in extra fields
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

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

  • Coptechs
  • Coptechs's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #63829 by Coptechs
Replied by Coptechs on topic Re: Aligning text in extra fields
Excellent, it worked. Thank you so much for your help, I appreciate it!

Brian

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

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


Powered by Kunena Forum