About 127,000 results
Open links in new tab
  1. css - The best way to skip a line in html? - Stack Overflow

    Dec 23, 2015 · And if the first part is a bunch of individual lines, but the second part is a piece of prose, only the second part needs to be a paragraph. No need to enclose the first part in <p> tags as well. Example: Add the water to the recipe<br> Add the salt<br> <p>Note: stir thoroughly!</p>

  2. Avoid line break between html elements - Stack Overflow

    There are several ways to prevent line breaks in content. Using &nbsp; is one way, and works fine between words, but using it between an empty element and some text does not have a well-defined effect.

  3. How to make html ignore code that is part of text?

    Jul 9, 2011 · Each time you insert any texts within the <pre> tag it wont get parsed as html document. One caveat though, if you try to put an opening HTML tag inside the pre tag, you have to do it like this: <pre> &lt;TEST> TEST!! &lt;/TEST> </pre>

  4. html - Remove spacing between <p> - Stack Overflow

    Aug 23, 2013 · If you want to remove the space between the lines of text themselves, then you need to put the text into the same paragraph, and adjust the line height. But even then, note that you'll never get this exact, as every typeface and font is going to have different metrics, and you won't always know what exact font will be shown on the end-user's ...

  5. How to make a line break in HTML with no spacing

    Jun 10, 2013 · HTML: <p>Content.</p> CSS: p{ margin: 0; } See this jsfiddle example. This will cause paragraphs to be created, and you can control any spacing between them using the margin-top and margin-bottom properties. (In this example, there is no margin.)

  6. How to make HTML code inactive with comments - Stack Overflow

    Aug 21, 2016 · I have some HTML code on a page that I don't want to erase, but make inactive for the short term. How can I make the browser ignore parts of the page in the same way the // works in some programming

  7. Skip <td> in HTML table - Stack Overflow

    Jul 25, 2012 · Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand

  8. Python: skip lines while parsing html code and get rid of white …

    May 11, 2017 · My attempt does not skip the first four lines and returns the strings including the many white spaces embedded in the code (which I want to get rid of): from bs4 import BeautifulSoup soup = BeautifulSoup(html_doc, 'html.parser') for h2 in soup.find_all('h2'): next next next next print (str(h2.children.next())) The desired result:

  9. css - Line break in HTML with '\n' - Stack Overflow

    Sep 5, 2016 · @PeterMortensen It's just the character entity reference of a line feed, similar to how &#10; from the accepted answer is its numerical (decimal) entity reference in XML / HTML. They are standard textual or numerical representations of a character defined in the HTML specifications and can be used for almost all Unicode characters, irrespective ...

  10. Render a string in HTML and preserve spaces and linebreaks

    I have an MVC3 app that has a details page. As part of that I have a description (retrieved from a db) that has spaces and new lines. When it is rendered the new lines and spaces are ignored by the html. I would like to encode those spaces and new …

Refresh