Sie sind nicht angemeldet.

1

Montag, 28. November 2011, 12:57

padding trouble

hi,

I want to put the text in the very centre of its background.
see this image


The CSS code is

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<data name="OverCSS">
		p{	
			margin:0;
			color: #FFFFFF;
			font-family: Georgia, Times New Roman, Times, serif;
			font-size: 20px;
			text-align: center;
			
		}
	</data>
	<data name="ActiveCSS">
		p{	margin-top:0;
			color: #FFFFFF;
			font-family: Georgia, Times New Roman, Times, serif;
			font-size: 20px;
			text-align: center;
			
		}
	</data>

	<data name="NormalCSS">
		p{	margin:0;
			color: #FFFFFF;
			font-family: Georgia, Times New Roman, Times, serif;
			font-size: 20px;
			text-align: center;
			
		}
	</data>


What should I add to put in the vertical middle ?
(I tried a lot of combinations, but no success..)

cheers,
=servaas=

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Montag, 28. November 2011, 14:57

flash doesnt have margin or padding top only left and right :(

I once "hacked" the textfield .as and added my own padding/margin property (basicly by dropping the textfield area low then the background area).

you could try adding a <br /> in the text to center it out

3

Montag, 28. November 2011, 15:07

thanks for the tip.. but..
When I do like this
[code<floor name="f1" title="<br />HASPENGOUW" >
<spot name="scene_kerk" />
<spot name="scene_school" />
</floor>[/code]

i have a fatal error 'unterminated attribute..."

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

4

Montag, 28. November 2011, 15:39

you could try <br> or [br]

5

Montag, 28. November 2011, 15:44

yep. the [br] has a result !
(not exactly how I want but it's going the good direction :-))