Jump to content

Textbox CSS


Euler

Recommended Posts

Posted

IllinoisCarry editor.css appears very determined to set white-space to pre for <textbox> tags. Excerpt below:

.cke_skin_ips *,

.cke_skin_ips a:hover,

.cke_skin_ips a:link,

.cke_skin_ips a:visited,

.cke_skin_ips a:active

{

margin: 0;

padding: 0;

border: 0;

background: transparent;

text-decoration: none;

font: normal normal normal 100% Sans-Serif;

width: auto;

height: auto;

border-collapse: collapse;

text-align: left;

vertical-align: baseline;

white-space: nowrap;

cursor: auto;

color: #444;

 

font-size: 11px;

font-family: "Helvetica Neue", Arial,Helvetica,Tahoma,Verdana,Sans-Serif;

}

 

.cke_skin_ips textarea

{

white-space: pre;

}

 

.cke_skin_ips textarea.cke_source

{

font-family: 'Courier New' , Monospace;

font-size: small;

background-color: #fff;

white-space: pre;

}

 

Could at least the last one above (.cke_skin_ips textarea.cke_source) be changed to white-space: pre-wrap;? It would wrap long lines inside a textbox, but otherwise leave white-space untouched, removing the need to scroll horizontally in the post editor, thus making it a lot friendlier. (BTW, that's the default behavior for textboxes if you don't apply CSS.)

Posted

I am sorry, I do not know what this means. . .

I suspect moderators don't have the ability to support the site technically. Mostly it means you need to ask whoever supports the site CSS. (My understanding is that IP Board's CSS and HTML files are truly a pain to maintain, because they're actually written in a PHP-like proprietary language, but it can be done.)

Posted

As a workaround you can type your post in rich text mode which will wrap when it hits the end of the line. Alternately, if you want to use BBCode mode, type your response in a plain text editor that supports word wrap, then copy the contents to your post.

Posted

... Alternately, if you want to use BBCode mode, type your response in a plain text editor that supports word wrap, then copy the contents to your post.

That's what I'm trying to avoid. The BB software shouldn't make me have to work around it. I'm more than half convinced that's why lots of people use Tapatalk on mobile, too, and why Bubbacs always starts a new sentence on a new line. Presently, my work-around is:

(function () {
	'use strict';

	var
		i,
		ta = document.getElementsByTagName('textarea');

	for ( i = 0; i < ta.length; ++i ) {
		ta[i].style['white-space'] = 'pre-wrap';
	}
}());
  • 2 months later...
Posted
A fix for the site's CSS shouldn't require a software upgrade. It's even less involved than a software configuration change. I have noticed (small) changes over time, so there's someone who makes them. Who is that?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...