This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

how to left align post text
#1

I have tried everything but can't seem to find the simple solution to my text display issues 

What is the setting or steps to set user post text to left align?  

notice my text is Roman and centered tells me it is a css or sylesheet issue but looking for an answer

Thank you

screenshot from whatsay.com posts

https://www.whatsay.com/screenshot-text-center.png
Reply
#2

To left align the comment text you can add this:

Code:
.cmtx_comment_area {
text-align: left;
}

https://www.commentics.org/creating-a-theme
https://www.commentics.org/changing-the-styling

Have you completed the interview?
Reply
#3

Thank you

Is this the file to update?

frontend/view/default/stylesheet/css/stylesheet.css?
Reply
#4

so I added the code to the file below

here is a link to a site calling the xcript in an iframe that does not appear to be displaying correctly
https://www.whatsay.com/topics.php?topic...%20Anxiety

is there something else I need to do?  add to make comment text left aligned?

Thank you
Reply
#5

If you follow the two links that I posted earlier it should work.

They explain how to create the file custom.css (which is what you'll need to add the styling to).

Have you completed the interview?
Reply
#6

Thanks,. 

Sorry,

I missed the part about creating the new custom.css file.

Is the default install code set to center post text?
Reply
#7

So that worked (just as you said it would)
I wonder since it is so simplistic compared to the stylesheet in the views default stylesheet directory What is the impact of just having that one css instruction in the custom.css file?

Should I be combining any or all of the other stylesheet.css code?

Thank you again Steven
Reply
#8

So I have this in the header of the page displaying comments in an iframe but the typestlye is basically showing as times new roman
<style type="text/css">body {font-family: Tahoma, Arial, sans-serif; } </style>

Is this browser related or is there a css element I can add to the custom.css file you have recommended?
Reply
#9

Yes the comment text is designed to appear in the centre by default.

If you want to combine the two CSS files together, you could put the styling into the stylesheet.css file instead of the custom.css file. However it means you'd have to re-apply it after each upgrade. Note that if you have the 'Optimize' setting enabled in Extensions -> Themes then you have to put the styling into the stylesheet.min.css file.

With the iFrame integration, Commentics isn't influenced by your page's stylesheet so it will be using the browser's default font family. You could add something like this:

Code:
.cmtx_container {
font-family: Tahoma, Arial, sans-serif;
}

Have you completed the interview?
Reply
#10

yes, thank you, I finally figured out that Firefox default font was times new roman so I changed that to tahoma nad worked. I will also add the new font style code to custom.css

Very appreciative of your great help

-SB
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by emmanuel505
24-Jul-2021, 11:55 PM
Last Post by TJs
29-May-2016, 03:03 PM
Last Post by somalimuzic
18-Apr-2015, 05:27 PM
Last Post by Hobittual
06-May-2012, 12:54 PM
Last Post by chonker
25-Aug-2010, 03:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)