Questions tagged [pre]

The

 element in HTML represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed. It is usually used for showing computer code or output.

The <pre> element in HTML represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed. It is usually used for showing computer code or output.

384 questions
0
votes
1 answer

How can i use 'Ellipsis style' in Multiline Situation?

i'm stuck in the tiny problem. Please help me. --> Please Visit my fiddle (Click here). How can i apply 'ellipsis' style in this situation ? How can i overcome obstacle such as
 and  for apply  style?
Don't remove 
 and…
Joker_FIN
  • 13
  • 4
0
votes
1 answer

having trouble with
  on mobile

This issue has been bothing me for a while. On this site http://www.mikedemar.com/timeline/ I have noticed that the content wraped in the tags goes outside the white boxes when viewing on mobile devices specifically iPhone. Any ideas on how to…
Mike
  • 49
  • 1
  • 8
0
votes
1 answer

MarkdownDeep pre issue

I created a web page in ASP.NET 4.0. I'm using MarkdownDeep library (http://www.toptensoftware.com/markdowndeep/) to convert some text to HTML. I found an issue that I can't fix. I hope you can help me. I have some kind of forum, a want to post some…
Gabbyboy
  • 1,984
  • 2
  • 14
  • 20
0
votes
1 answer

Center button inside bootstrap

I have done a good bit of searching and even tried modifing the bootstrap css file for .btn and
 but I cannot figure out how to get this thing centered
Currentpassword
0
votes
2 answers

I want to use
 to keep the format of input text, but the displayed text crosses the boundary of its parental tag

The text in
 steps beyond the boundary of its parental 
. How to solve this problem? It is said that the line lengths in the preformatted text can be shortened, but how to do it? I have seen <%#…
Steven
  • 24,410
  • 42
  • 108
  • 130
0
votes
1 answer

Problems Displaying HTML Snippets with and/or

I'm trying to build an HTML element library (like Twitter Bootstrap) and I'd like to have a live version of the element (like a button, for example) next to the proper code markup. I'm trying to use Prettify to display something like…
Jon
  • 3,154
  • 13
  • 53
  • 96
0
votes
1 answer

pre inside li: fixing formatting in Chrome and IE9

I have this html:
  1. some
     code code code code code code code code code code code code code code code code code code code 
    code…
user1147862
  • 4,096
  • 8
  • 36
  • 53
0
votes
2 answers

CSS Code highlighter - spacing between lines

See this Fiddle: http://jsfiddle.net/Zdnsx/ I have 3 questions, Why is margin-top not working? Is it because they are inline elements or because they are in pre tag? Is it a good idea to make a code highlighter in pre tag, or is there a better and…
Sourabh
  • 8,243
  • 10
  • 52
  • 98
0
votes
1 answer

Display String array with struts 2 in jsp

I want to display string array on jsp. below is the code I have written :
With this code i am able to print string array, but I am…
javac
  • 25
  • 10
0
votes
0 answers

Add line break in
 tag

I am using this css for pre tag. It does not add line break and code is mixed. I want to add line break same as we add in writing pane by hitting enter. pre { font-size:16px; overflow: auto; padding:10px; …
Allen
  • 1
  • 3
0
votes
2 answers

Javascript CreateElement creates empty tables

I'm trying to use a pre html tag to contain some code that I am going to format. I take the code from a pre-existing pre tag, and make a table containing the code, which is then formatted. But every other time I make a td element, with some text in…
Loyalar
  • 2,131
  • 4
  • 24
  • 44
0
votes
2 answers

Preformatted Text on Canvas Element

I am having problems reflecting the new line and multiple spaces entered by a user in a text area onto a canvas element. I cannot seem to find a away to convert the text to preformatted. Essentially the way my site works is that I have a text box…
grapien
  • 313
  • 3
  • 10
0
votes
1 answer

How can i insert into my website a HTML source code without being modified?

In a section of my webpage is displayed a source code of a HTML (with a , a , ALL that can have a HTML code), and the user can extract the code. I have that code in a text file into a iframe. The problem: Iframe doesn't works in browsers…
yukatta
  • 505
  • 2
  • 7
  • 16
0
votes
1 answer

rpmbuild %pre does not work

"%pre – This is where code is run before the install scripts run." this section does not work for me . I got a spec file from “http://repo.andrewfarley.com/centos/specs/zabbix.spec” . every thing is ok ,but the rpm package can not create the…
Jeff
  • 1