三个div进行布局

时间:2017-02-13 03:01:04

标签: html css

我尝试过以下多种不同的方式,但是还没有能够正确显示它。只有三个div,没有定位,没有边距 - 我只是使用float。有人可以告诉我如何实现这个目标吗?

enter image description here

1 个答案:

答案 0 :(得分:0)

这应该适用于浮动

<强> HTML

function module_name_import_form($form, $form_state) {
    $form['notes'] = array(
        '#type' => 'markup',
        '#markup' => '<div class="import-notes">A few upload fiel. <ul><li>pastikan file berformat .csv</ul></li></div>',
        '#upload_location' => 'public://tmp/',
        );
    $form['import'] = array(
        '#title' => t('import'),
        '#type' => 'manage_file',
        '#description' => t('file akan di upload'),
        '#upload_location' => 'public://tmp/',
        '#upload_validators' => array(
            'file_validate_extensions' => array('csv'),
            ),
        );
    $form['submit'] = array(
        '#type' => 'submit',
        '#value' => t('import'),
        );
    return $form;
}

<强> CSS

<div class="redbox"></div>
<div class="dother2box">
    <div class="orangebox"></div>
    <div class="greenbox"></div>
</div>

希望这适合你