PDA

View Full Version : How to resize the container ?


stckhlm
01-11-2009, 12:24 AM
Settings Screen :
http://www.dwgallery.net/data/503/showthread.gif

As you can see from above picture, the container width is 100%


Showthread Screen :
http://www.dwgallery.net/data/503/showthread2.gif

But in showthread template, the size i get is different.

I need help about below points.
*How can i make the container to fill the window ? (Width = 100%)
*Is it possible to set the height too ? (Height = 250px)

What do i want to do ?
I would like to show the content in [code] so the text will not change. (If i do not use the [code] then text (content) change a lot and shows the smilies.) And the container should be : widht=100% but height=250px

Regards..

stckhlm
01-11-2009, 06:16 PM
http://www.dwgallery.net/data/503/Image40.gif

I've solved my problem about the width of the custom container. But not through the Admin CP. I've changed the below line in my custom template.
<table width="100%"><tr><td>$post[GARS_modposition6]</td></tr></table></if>But i still have a problem about the text content in the custom container. As you can see through image, there is 1 line space between each lines. And i couldnt find a solution.

I can use vbulletin bbcode but then i can not change the height of the block so the layout of my page geting broken. I couldnt sucess about how to use [code] with desired sizes. But i guess, if i could do the resize through Admin CP (as shown on message 1, picture1) then it would be much easier for me.

I will appreciate any advise...

The original text content of above picture is as below :
[CODE]

:;:.
-o?~:
.?33o;-
.?300ø;-
.?3080o?-
:o38VV83?:
:ø8VVKV0o~.
~ø08VKVV8ø;:
;08VKKVKV8o: :~-.
?38VKKVKVV8?. -øø?o??-
.::----::.. ~088VKVKKKV8;. ..~ø8V8øøo??~
..-;;;;~~---?8VVKVVKVVV3: ~ø808008o;~-;?
-?ooo?;~~~ø8VVVVKK8V0;:;08VVK00ø;;?;ø8?~.
.;ooo??;~?088VV8VKV8ø-;0VKKØVø?;??;0V083-
.~?ooo???o008VVKK880?: -3000o?;;;?ø33ø083:
:?øøøooo388VVV8V8V0?:;3ø;;?o?o8o0ooV8? .
.;o33333880383ø3VV3;:.-303o?;;~303o??8Vø.
.~ø300003oø33øø333??;-~ooøøo?~~~ooo??o;
-;ø08VV80øo33ø3ø003øoo?o?;;?ooo??oà ¸;~-:
.~o08VK803ooø333o3øoooø???;;;?ø300;~~-~ :-::--:::
-?38VV8?øo?oøø33øoø?øoo3?;~;;o30 ¸?-:~: :ooo;o??;~.
.-ø0VK8øoooooø3ooøo3oo0øooo;?oo0o--:::.:;o33383?~
.:o0VKKV03?ø?3;oooooo800ooo3??o;;-:-?ø?;o00000o;.
-?38KKV838??o??3o?383300ø;~;;;;~~o0038øø33 3øo
.-30VVKØKV?oo33?ø888VV3?~~~~~;??803V30ø303o :
~o?0KVØKKV800330VKV083o;~~;??oV83VKV80oø?.
.-?0888VKV808003ø0VVø;0V83;~~?ooo088VV83o?~
~oooøø?0803øøøoo??øV8ø~;0883? ~~~o3300080;~;.
~:.::ø80033oo???;;oV0ø;--0V80o;~~?083oo?~..
;33033øoo?;;;;?388o~;~;3V880ø;~~?. ..
:?30033øøøo?;;;?o3K8??~--38VØK83o;-:
:o3333333øo??;;?ooo8Ø8øo~~?0VKØV8o.~;-:
-o03330003øo?;;;??;?øKØV8;~;0KK8VV83. ~~-
-o380308003øo?;;??;;?o8KØ88oø?ø088883- :;~:
.- .~oøø008V38V803ø??;;?;;;;oøVKØ8o83? 3?33oo; :~-
:;ø00ø;-.. :ø30088VV88V8803oo?;;;;;;?o8VØØ3ø8030o ??;~.
o08V88803øo;;oø338888V88VKVV03øø?;;?;; ;?o88KØØo??oo3o?o-:.
08VVVVVV888888880888VVVV880033oø?;;;;;?o00VØ ØØo;-??3;??;~.
8VVVVKØØKV833308888VKKV003ø33øo?;;;;;? o000KKØØ3;~?øøo?;-;;:
VV8VØØØØVKØØØKVV8880308800à øøoo?;;;;?o00388?KØV~~;?;??-;-;~.
888KKKØKØØØKKKKKKVV803380øøoø o??;;;?ø03388~ 3VKø:~-~?o~;-~-:
ø0V8KØNØKKKØKV88VVVVV80ø30ooo???;;o 380088ø. ~8VKø--:~o?~~~~:
.?08V8KKKØVKVVV80888VVV83øøo??;??ø8V08 883- :0VKK0;--~;:
;33~~8KØV8V8888000008003o?;;?ø8V888803- 30VV8Vø~--
.: ?0888080888800000003øø38VV0V803ø- -øo8883ø~-
.?3088808888VVVKKKKVVVVV8888V8003- :3o3ø?~:
:?øo~:;VKØØØØØVVVV880880308KKV80 3? -;ø0o;~.
?o?. .0KKKKKK8VKVVVV8888880003ø? -~;33?;~
o? :VVØKVVV08ØKV8V880033333o;. :?o?~;.
:: .o8KKØK8080KKKV8800033øøø- ??;~-
-3VVVKØV8VVVV00003øooo;. -~~.
~8KKKVKK833oo0003øø-
.ø8x28;. ?3øo?-
.-: -o;~-.
.~?;~-
;;~~~
.o;~:
??~.
~;~.
~~.
.................................................. .....................................
.................................................. .....................................
.................................................. .....................................
.......XXXXXXXXXXXXXXXXXX......................... .....................................
.....XX XXX............................................... .............
....XX .......... XX................................................ ..........
...XX ,' \ XXXXXXXXXXXX XXXXXXXXXX XXXXXXXXXXXXXXX..................
...XX ,' | ,........... X,....... X ,.......... XXX................
...XX 8888888888 |,' \,' ,' ' ,' ,'\ XXX...............
...XX 88888888888 | 88888888 \,' ,' \ X...............
...XX 88888 88888 8888888888 8888888888 88888888888 | X...............
...XX 88888 88888 /88888888888 88888 88888 888888888888 | X...............
...XX 88888 88888 / 88888 8888 88888 88888 88888 8888888 | XXXXX XXXXXX...
...XX 88888 88888/ 88888 8888 /88888 88888 88888 8888888 |,.... ,.... X...
...XX 88888 88888 88888 8888 / 88888 88888 88888 888888 | ,' ,' ,' X...
...XX 8888888888 88888 8888/ 88888 88888 88888 88888 88888 | 88888 | X...
...XX 88888 | 888888888 88888 88888 88888 88888 88888,' 88888,' ....
...XX 88888 | 8888888888 88888 88888 88888 88888 |,' ,' ,' ,' ..
...XX 88888 | 88888 8888 88888 88888 88888 88888 88888 | 88888 | X...
...XX 88888 | 88888 88888 88888 88888 88888 88888 /88888 | 88888 | X...
...XX 88888 | 88888 88888 88888 88888 /88888 888888/ 88888 | 88888 | X...
...XX 88888 | 88888 88888 88888 88888 / 88888 888888/ 88888 | 88888 | X...
...XX 88888 / 88888 88888 /88888 88888/ 88888 888888/ ,'88888/ 88888 | X...
...XX 88888 / 88888 /88888/ 8888888888/ 88888888888 88888888 88888,' X...
...XX 88888/ X 88888/ 88888 88888888/ 8888888888" 8888888` 88888 X....
...XX X X X X X X X.....
...XXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXX XXXXXXXXXXX XXXXXXX XXXXXXX......
.................................................. ......................---............
............................................|~) |~) [~ (~ [~ |\ | ~|~ (~ .......
............................................| |^\ [. .) [. | \| | .) .......
.................................................. .....................................

Morgan
01-12-2009, 05:24 PM
Not sure what to suggest with your custom module, but it looks like nl2br (http://php.net/nl2br) is being applied. For the vB code tag, go to the ACP -> vBulletin Options -> BB Code Settings -> Maximum [CODE] Lines.

stckhlm
01-12-2009, 08:54 PM
Edit : I've solved my problem after following your advises...
Thank you very much Morgan...