<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17614</bug_id>
          
          <creation_ts>2012-06-27 03:35:07 +0000</creation_ts>
          <short_desc>align-vertical:middle issue</short_desc>
          <delta_ts>2012-12-04 00:52:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Box model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yang Sun">eric.sun</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69449</commentid>
    <comment_count>0</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-06-27 03:35:07 +0000</bug_when>
    <thetext>Hi all

I have a question on align-vertical.

I want to develop a page.And in a element container &lt;div&gt;, there are textarea, input box, a picture, I want them to in the same line, the line in the vertical-middle of the div.

So I use align-vertical:middle.But I failed to align them a line.



&lt;html&gt;
&lt;body&gt;
&lt;div style=&quot;width:100%; height: 400px; background-color: #cfcfcf;&quot;&gt;
	&lt;span style=&quot;vertical-align:middle;&quot;&gt;text&lt;/span&gt;
	&lt;input type=&quot;text&quot; style=&quot;vertical-align:middle;&quot; /&gt;
	&lt;img src=&quot;pic.jpg&quot; style=&quot;vertical-align:middle;&quot; /&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;html&gt;

I test it using chrome,IE9, I can not align them in a line.

My suggestion,can we use vertical-align for parent object, so all the child objects in this parent object can align together in the middle :
&lt;html&gt;
&lt;body&gt;
&lt;div style=&quot;width:100%; height: 400px; vertical-align: middle; background-color: #cfcfcf;&quot;&gt;
&lt;span&gt;text&lt;/span&gt;
&lt;input type=&quot;text&quot; /&gt;
&lt;img src=&quot;pic.jpg&quot; /&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

suggestions and comments both welcome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>