1
PTlooker
[code] don't respect width
  • 2005/6/22 12:13

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Hi,
[code] tag doesn't seems to respect the width of the site...anyone knows how can i "fix" this?
Thanks in advance!

2
Mikhail
Re: [code] don't respect width
  • 2005/6/22 12:27

  • Mikhail

  • Just can't stay away

  • Posts: 412

  • Since: 2003/1/19


Quote:

BMCouto wrote:
Hi,
tag doesn't seems to respect the width of the site...anyone knows how can i "fix" this?
Thanks in advance!


*maybe* work:

div.xoopsCode {    
font-size12px;
Font-familyFixedSys"Courier ew",Courier,monospace;
background#FAFAFA;
border1px solid #6C87B0;
color#385a72;
width500px;     #  <<<<<<--------- HERE!!!!!!
height200px;
margin0.5em;
overflowauto;
padding3px 3px 3px 3px;
}



Obs: eu prefiro usar o código
 xxx 

3
PTlooker
Re: [code] don't respect width
  • 2005/6/22 22:33

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Thank you, but it didnt work, because the box stays with 500px of width but the text don't...and
 tag i cant use because i have to turn off the html to show the code... any other idea?
Thanks a lot!

4
Peekay
Re: [code] don't respect width
  • 2005/6/22 23:35

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I have always added the wrap=physical attribute to a textarea:

<textarea name="Mytext" 
value="" rows=10 cols=50 
wrap
=Physical>textarea>


But I don't know if this is already implemented in Xoops.

I recently saw a module option somewhere (can't remember where.. brain too hot) that restricted the length of a single word in a text field - which is *really* cool if you get idiots who hold their finger down on a single character to bbbbbbbbbbbbbbbbbbbbbbbreak your layout.

5
PTlooker
Re: [code] don't respect width
  • 2005/6/23 1:23

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Yes, but to do that i have to edit on the form, i mean i have to put html code on the form, but i cant..html has to be disabled so i can show the code...(a little confusing i know)...it has to be a way to put the tag [code] with the width of the site...anyone?
Thanks in advance!

6
Mikhail
Re: [coders don't respect] width
  • 2005/6/23 3:14

  • Mikhail

  • Just can't stay away

  • Posts: 412

  • Since: 2003/1/19


Quote:

BMCouto wrote:
Yes, but to do that i have to edit on the form, i mean i have to put html code on the form, but i cant..html has to be disabled so i can show the code...(a little confusing i know)...it has to be a way to put the tag [code] with the width of the site...anyone?
Thanks in advance!




Webmasters: please, dont delete this msg.


BBCouto: clear the cache of your browser after change the css, and delete all files in "templates_c" (leave only the index.html) always after change the theme.html .

7
PTlooker
Re: [coders don't respect] width
  • 2005/6/23 16:23

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


O but i didnt change nothing in theme.html... explain yourself please.
Thanks a lot!

8
bluenova
Re: [code] dont respect width

Quote:
and delete all files in "templates_c" (leave only the index.html) always after change the theme.html .


Or just turn on 'update themes and templates' in Sys admin ¦ Prefs

9
PTlooker
Re: [code] dont respect width
  • 2005/6/23 16:32

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


i've done that but the problem remains...with the tag [code] the site width goes wild... to 1000px or more, depends on the code for one line...
any idea how to solve this?

10
Mithrandir
Re: [code] dont respect width

Add an overflow:auto to the code's CSS class?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

Login

Who's Online

262 user(s) are online (209 user(s) are browsing Support Forums)


Members: 0


Guests: 262


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits