Yii Framework Forum: alignment ! - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

alignment ! Rate Topic: -----

#1 User is online   Sachy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 163
  • Joined: 01-December 13

Posted 10 October 2014 - 09:52 AM

Almost 2 days but i am not able to align the textArea below inline


<div class="row-fluid">
  <div class="row">
    <div class="span8 well" style="padding-bottom:0">
            <hr>
            Subject: 
              <?php
          echo CHtml::activedropDownList($model,'subject',array( 
            'I would like to Reserve'=>'I would like to Reserve',
            'I would like to know more'=>'I would like to know more',
            'I would like to Buy'=>'I would like to Buy',
            ));
            ?> 
            <hr>
            Message: 
                <?php
            echo $form->textAreaRow(
              $model,
              'body',
              array('class' => 'row-fluid span10', 'rows' => 5,'placeholder'=>'Type in your message','label'=>'Send MEssage'),
              array('labelOptions' => array("label" => false))
              ); 
              ?>
<hr>

              <!-- </textarea> -->
               <button class="btn btn-info"><?php echo MessageModule::t("Send") ?></button>
               
           
        </div>
  </div>
</div>

Attached File  Screen Shot 2014-10-10 at 4.50.25 PM.png (22.75K)
Number of downloads: 8

How to align the text area right below the select box?
0

#2 User is offline   georaldc 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 104
  • Joined: 08-July 11

Posted 10 October 2014 - 02:46 PM

I think you need row-fluid divs for each row

<div class="row-fluid">
	<div class="span2">Subject:</div>
	<div class="span10">
		<?php echo CHtml::activedropDownList($model,'subject',array( 
            'I would like to Reserve'=>'I would like to Reserve',
            'I would like to know more'=>'I would like to know more',
            'I would like to Buy'=>'I would like to Buy',
            ));
        ?> 	
	</div>
</div>
<hr />
<div class="row-fluid">
	<div class="span2">Message:</div>
	<div class="span10">
		<?php 
		echo $form->textAreaRow(
              $model,
              'body',
              array('class' => 'row-fluid span10', 'rows' => 5,'placeholder'=>'Type in your message','label'=>'Send MEssage'),
              array('labelOptions' => array("label" => false))
              );
        ?> 	
	</div>
</div>
<hr />
<div class="row-fluid"><button class="btn btn-info"><?php echo MessageModule::t("Send") ?></button></div>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users