Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6067829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:39:02+00:00 2026-05-23T09:39:02+00:00

The problem: A text box has a shorter length than a combobox. so if

  • 0

The problem:
A text box has a shorter length than a combobox. so if I draw them vertically it does not look pretty because they are not aligned on their right side edges. so let’s make text box a little longer.
But I do not want to just type pixels to do it. I think I should be able to do this with setting percentages on some DIVS but I am newbie and could not figure out yet.
so here is what I have and I am also attaching it as a sreen shot.
so for now our goal is to make that “Alias” text box make larger so it will be right aligned with the “Ancestry” combobox that is below it.

P.S: some of these tags you see are not standard html. they are from ZK framework but it is fine. we can still use DIV.

<vlayout >
    <hlayout spacing = "20px">
        <vlayout id= "GeneGroup">
            <label id= "geneLabel" value = "*Gene Symbol"/>
            <bandbox id="bdGeneSearch">
            </bandbox>
        </vlayout>
        <vlayout id= "AliasGroup" >     
            <label id= "lblAlias" value = "Alias"/>
            <textbox  id = "txtAlias">
        </textbox>
        </vlayout>
    </hlayout>

    <hlayout spacing = "20px">          
        <vlayout id= "RefSeqGroup">     
            <label id= "lblRefSeq" value = "*Reference Sequence"/>      
                <combobox id = "cbRefSeq">
            </combobox>         
        </vlayout>
        <vlayout id= "AncestryGroup">       
            <label id= "lblAncestry" value = "Ancestry"/>       
                <combobox id = "cbAncestry">
            </combobox>         
        </vlayout>
    </hlayout>  
</vlayout>
</div>

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:39:03+00:00Added an answer on May 23, 2026 at 9:39 am

    I changed your layout structure a bit by having single hlayout containing two vlayouts and then using hflex=”1″ on the text box so that it expands to the whole width of vlayout containing it. Here is the code

    <zk>
    <hlayout>
      <vlayout>
            <label id= "geneLabel" value = "*Gene Symbol"/>
            <bandbox id="bdGeneSearch">
            </bandbox>
            <label id= "lblRefSeq" value = "*Reference Sequence"/>      
             <combobox id = "cbRefSeq">
            </combobox>         
     </vlayout>
     <vlayout>
    
           <label id= "lblAlias" value = "Alias"/>
            <textbox  id = "txtAlias" hflex="1">
        </textbox>
            <label id= "lblAncestry" value = "Ancestry"/>       
                <combobox id = "cbAncestry">
            </combobox>         
    </vlayout>
    </hlayout>
    </zk>
    

    You can see it in action on ZKfiddle here
    Also you can refer to ZK’s excellent documentation on Component flexibility using hflex and vflex here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my Problem is that I have an asp text box which has a value
There is a problem in VBA text box while filling input mask property: I
I'm having a problem displaying data from a function to text box within a
Problem: A form is submitted with a text box on it. I enter a
I have a text box whose Text property has a TwoWay MultiBinding with UpdateSourceTrigger
In a pretty typical scenario, I have a 'Search' text box on my web
problem is I have a date text box and a shifts drop down. When
I have a simple control that has a masked text box: xmlns:extToolkit=http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended ... <extToolkit:MaskedTextBox
Silverlight renders few Chinese characters as Bold in a text box. This textbox has
I have 2 pages : page1.php : - has a form with text box

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.