Results 1 to 4 of 4

Thread: how to superpose 2 label on image

  1. #1
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142

    Default Answered: how to superpose 2 label on image

    Hi all,

    I want to superpose 2 component
    One image, and over this image, one label field
    Code:
    ,{
    	xtype: 'container',
    		layout:
    		{
    			type: 'hbox',
    			align: 'left',
    			pack: 'center'
    		},
    		items: [
    			{
    				xtype : 'image',
    				id:'id_logo_login',
    				src : 'images/icones/login_tab.png',
    				style:'width: 278px; height: 45px; padding-top: 0px; margin: 0px; top: -1px;'
    			}
    			
    			,{
    		        xtype: 'label',
    		        forId: 'currentUserConnected',
    		        text: 'TESTUSER',
    		        width: 150
    		    }
    		]
    }
    Thanks for your suggestions
    Tamditi Karim

  2. Why dont u try image in css for that container and text will come automatically on top of it
    similar concept of tab...

  3. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    Have you tried using the vbox layout for the parent container containing your image / label?

  4. #3
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142

    Default

    Hi,

    with vbox, the text is placed below the image
    here is a capture :
    Capture.JPG

    Thanks for your help
    Tamditi Karim

  5. #4
    Sencha User
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Answers
    1

    Default

    Why dont u try image in css for that container and text will come automatically on top of it
    similar concept of tab...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •