Custom Wordpress Theme don't break the paragraph - wordpress-theming

Paragraph don't break the line in my custom template.
I'm a beginner and I've tried to change the style of 'p'.

Related

Resolve CSS Line Wrapping in VS Code

I'm fairly new to learning coding and I'm trying to figure out how to set up VS Code so that it doesn't wrap HTML tags in CSS. I have Prettier installed and set as my default formatter. It won't allow more than one HTML tag on a single line in CSS and I can't figure out why.
Screenshot of wrapping HTML tags in CSS doc
If you want to un-wrap your code in the editor, just press alt + z in the file you want to (wrap-unwrap) the code.

Unbolden and italicize headers in RMarkdown

I'd like to create subheaders that are not bold and italicized in an RMarkdown file. When I try manually use html tags like this
<h2 style="font-weight: normal;">*Header Example*</h2>
it gets indented as if it's a new paragraph. I do not want the subheader to be indented.
I have the setting in my YAML:
header-includes:
- \setlength{\parindent}{30pt}
If I use the above approach, can I still control the line spacing between headers and paragraphs?
And there doesn't seem to be a difference between h1 and h2 tags with the above approach.
I used the HTML \small element to make the text smaller and \textnormal to unbold.
# HEADER EXAMPLE $(\small{\textnormal{subheader example}})$
This keeps the subheader on the same line as the header. You can also easily italicize with *s.
# HEADER EXAMPLE $(\small{\textnormal{*subheader example*}})$
This way it doesn't get indented into a new line and you can still control the line spacing between headers and paragraphs.

Angular Code Inside App-Root Tag Not Styling Correctly

I am having an issue with my Angular 7 application when initializing. I have a class called "testing", and all it does is change the text color to red. I had the class listed in either the index.html file inside a style tag, or in the styles.scss file with all my global styles. I tested both ways with same results. I'm using angular/cli and ng serve to test my application and the following is how I have my index.html page laid out:
<body>
<app-root>
<div class="container">
<span class="testing">Application is loading, please wait...</span>
</div>
</app-root>
</body>
Expectation: The text inside the span should be red with a slight indent (via bootstrap container class).
Actual Results:
When I type localhost:4200 in the url and hit enter, the text appears to the top far left of the screen with no red color before the app gets rendered.
If I hit refresh the same thing as #1 happens.
If I hit shift+refresh, for a split second #1 happens before the text gets indented into the bootstrap container div and changes to red.
Can someone explain to me what is happening here, and what do I need to do to make #3 happen without any split second style changes? If any additional information is needed to answer, please let me know.
First, of all this is not right way to write even a single word in tag because it behaves as template directive or you can say empty box to be filled by app.component.html content, and this is why you observing little flick (appears before render) and best way to write your content in app.component.html and style it through app.component.css / app.component.scss or you can write that css in main file for css (style.css) but each class should be in their component styling. Because angular is about separate modules/component/section.
Hope this helps you

text_area text formatting

I am creating a webpage for small primary school, where teachers can make a new posts for children parents. Webpage is very simple and I want to keep it simple, but there is a problem with text_area. In the view all written text is in one block, but I want to write some sentences in new line, how I can do this to keep it simple. I don't want to use a rich text editors for that problem.
in your view, use simple_format() That will display all text as it was typed, with spaces and line breaks.
an example from one of my apps:
<div id="report-body">
<%= simple_format(#report.body) %>
</div>
Use line feed and carriage return to put new line in text area (i.e)
For example:
<textarea>This is first line.
</textarea>
To add
in text area you need to implement some javascript to create keyboard shortcut.
I am not sure if I get your question correctly; I think it is a question about css. I think you just need to give this property:
white-space: pre;
in the css for textarea. Then, all white spaces, including carriage return, will appear as they are in the textarea.
wrap your text inside html tags for simplicity, you can also add a simple CSS and style your page as desired.
<p> This is your paragraph </p>
<h1> This is your heading </h1>
use a <br> tag to break line

CKEditor Header Styles - h1 is applied to entire paragraph block and not just the selected text

I'm using CKEditor in OpenCart 1.4.9.3. My problem is with the paragraph tags it automatically add and how it handles applying header tags. Say I have this text:
Example text here
This is some example text.
CKEditor has them both in the same paragraph block even though they're on different lines. I highlight Example text here and select h1. It makes both lines h1 instead of just my selected line.
How can I fix this? I imported over 1000 products so I can't very well go through and replace every p with a br, especially since in any new product, the editor will add p tags anyway. I am aware I can add the header styles in Source, but my coworkers can not handle html. They need to be able to highlight a line and change it to h1 or h2 without hassle.
Thanks!
Are you sure that it works if there's a br to make a linefeed, but not when there's a paragraph?
As I've figured, the h1 would apply to the whole paragraph, ie change the p to h1.
Try the same in your Word Processor, with linefeed (ctrl+enter) or new paragraph (enter).