I\'m trying to take the value from a textarea and put it inside a pre tag, and it works ok on chrome and mozilla but on IE8 the entire content stays on one line in the pre tag
I have a problem with outputting some C++ inside a pre tag. The XHTML code I have is : <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.d
In the database I have some code like this one Some text <pre> #include <cstdio> int x = 1; </pre>
I want to adddiv to my website 开发者_如何学Gowhich has variable width, and that it will display scroll bars when the width is smaller than the longest line.
I have read that the \'pre\' tag will collapse all white spaces and ta开发者_如何学Pythonbs into one space, but it doesn\'t do so for me.
I am working with PHP, and I want to display some data I have in an array (from a mysql db). The problem is that the first column not always have the same length, so while some rows containing shorter
I am new to HTML. I was trying the following code to work but it did not. Can anyone please help me out why <pre> tag is not working inside <h> tags? I also tried to code tag but it din\'t
I have a textarea and users can type in it. I want to store what they type in a MySQL database but I want to output it with the right amount of spaces like HTML\'s <pre></pre>.How can I sa
Can anyone help me with a xpath selector to select all the pre tags with开发者_JAVA技巧in a page, but only if they are not within another pre tag? (even if multiple levels deep)
I\'m displaying some content using the PRE tag, because it\'s vital to preserve the whitespace as is.