We help IT Professionals succeed at work.
Get Started

How to decrease space between  Flex Text objects?

mhopkins9901
mhopkins9901 asked
on
902 Views
Last Modified: 2012-06-21
I have a simple design issue that has become a real time eater. I am trying to figure out how to decrease the space between text objects as in the code snippet I included. I have tried setting vertical spacing to 0 and tried every style setting I could find. These are dynamic sentences that simply need to appear a little closer together. Is there another way to do this or am I just missing something here.

I am using flex 3.

Thanks

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" >
 
<mx:Script>
	<![CDATA[
		[Bindable]
		public var lineOne:String = new String("This is the first line");
		
		[Bindable]
		public var lineTwo:String = new String("This is the second line");
	]]>
</mx:Script>
	
<mx:Style>
	Text.lineone{
		color: #4260C4;
		font-family: Arial;
		font-size: 12;
		font-weight: bold;
		padding-bottom:0;	
	}
	Text.linetwo{
		color: #4260C4;
		font-family: Arial;
		font-size: 10;
		font-weight: normal;
		padding-top:0;	
		
	}	
</mx:Style>	
 
 
<mx:VBox verticalGap="0">
 <mx:Text id="line1"  text="{lineOne}" styleName="lineone"/>
 <mx:Text id="Line2" text="{lineTwo}" styleName="linetwo"  />
</mx:VBox>
	
</mx:Application>

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE