0 Members and 1 Guest are viewing this topic.
.code{ color: #000000; background-color: #FFFFFF; font-family: "courier new", "times new roman", monospace; font-size: small; line-height: 1.3em; /* Put a nice border around it. */ border: 1px solid #000000; margin: 1px auto 1px auto; padding: 1px; width: 99%; /* Don't wrap its contents, and show scrollbars. */ white-space: nowrap; overflow: auto; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 24em;}/* The "Quote:" and "Code:" header parts... */.quoteheader, .codeheader{ color: #000000; text-decoration: none; font-style: normal; font-weight: bold; font-size: x-small; line-height: 1.2em;}
in http://www.omnimaga.org/Themes/omnimaga4/style.css, search for "code". This is the style for the box. The box is made up of codeaheader and code. Wherever you have the div attribute for code, just do <div class="code"> or <div class="codeheader">Code: [Select].code{ color: #000000; background-color: #FFFFFF; font-family: "courier new", "times new roman", monospace; font-size: small; line-height: 1.3em; /* Put a nice border around it. */ border: 1px solid #000000; margin: 1px auto 1px auto; padding: 1px; width: 99%; /* Don't wrap its contents, and show scrollbars. */ white-space: nowrap; overflow: auto; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 24em;}/* The "Quote:" and "Code:" header parts... */.quoteheader, .codeheader{ color: #000000; text-decoration: none; font-style: normal; font-weight: bold; font-size: x-small; line-height: 1.2em;}
With long lines of text, it stretches outside the screen and the topic gets impossible to browse. I believe someone tried to help me fix it a while ago, but it didn't work...On SMF I saw some code that might fix it but I didn't have time to do it. I'll need to check again later.
Quote from: DJ Omnimaga on December 04, 2010, 09:44:53 pmWith long lines of text, it stretches outside the screen and the topic gets impossible to browse. I believe someone tried to help me fix it a while ago, but it didn't work...On SMF I saw some code that might fix it but I didn't have time to do it. I'll need to check again later.Hum... So has anyone got other code CSS?
Quote from: ScoutDavid on December 05, 2010, 09:42:53 amQuote from: DJ Omnimaga on December 04, 2010, 09:44:53 pmWith long lines of text, it stretches outside the screen and the topic gets impossible to browse. I believe someone tried to help me fix it a while ago, but it didn't work...On SMF I saw some code that might fix it but I didn't have time to do it. I'll need to check again later.Hum... So has anyone got other code CSS?The CSS does work, it's just got that glitch in Opera, which isn't really obvious unless you have a single line of code long enough to stretch past the entire page. Not sure about this, but try it but without the white-space:nowrap line.
Well there are a bunch who does, just far less much than Firefox and Chrome. Opera was never as popular as the others because it used to not be free. Now it's free but sometimes they fall behind in web standards (although not as much as IE)
Yeah I keep hearing about Chrome since the past year. A lot of people loved Firefox, but they were annoyed at the crashes around version 1.5 until 3.0 came out and it takes a long while to startup. On my Intel Core i7 860 @ 2.80 GHz with 8 GB of RAM, it still takes up to 5 seconds to startup. Opera and IE8 takes half a second and Chrome 1 second. Imagine on older computers. I wouldn't be surprised if Chrome topped Firefox soon. I personally stick to Opera but if I notice they start getting too far behind in web standards and that too much valid code stops working, they will lose me as user.As for Safari, it's not any faster than IE on Windows but it renders pages more properly. It's more useful on Mac.