How do I get one column with one row and one column with two rows nested in HTML/CSS

Lex Lemmens

I'm looking for the easiest way to get a icon on the left vertical aligned with the two lines of text on the right.

What I'm struggling with is the way I have to organize my HTML. I can functionally build this, but I think it's not efficient/clean the way I do this (too much code). So any advice on how this problem can be tackled is highly appreciated :). A screenshot from what I want to achieve is below. I'm using Font Awesome and Bootstrap 3 for development.

Screenshot of what I want to achieve

Lakshay Bhardwaj

just add div display to table-row

https://jsfiddle.net/q2x9sLo9/

Address

Mirpur New Bazar Road, Dhaka-12101

<div style="background-color:#00ced1;display: table-row;">
<i class="fa fa-envelope" style="float:left; padding:18px; background-color:#00ced1; color:white; font-size:40px"></i>
<div style="float:left; background-color:#00ced1; color:white;">
<h4>
E-mail
</h4><p>
[email protected]
</p>
</div>
</div>

<div style="background-color:#00ced1;display: table-row;">
<i class="fa fa-phone" style="float:left; padding:18px; background-color:#00ced1; color:white; font-size:59px"></i>
<div style="float:left; background-color:#00ced1; color:white;">
<h4>
Phone
</h4><p>
(732) 803-01 03
</p>
</div>``
</div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how do I aggregate one column for 2 tests into two columns on one row

From Dev

How can I concat these two rows into one column in SQL

From Dev

How do I create two rows from one row SQL

From Dev

Using SQL SMS, how do I combine multiple rows into one row, but maintain all the column data?

From Dev

Combine two rows into One Column

From Dev

how to get the row in some column in one table

From Dev

VBA excel: How do I get data in cells as an array up one row in the same column without selecting?

From Dev

How to Pivot one Row into One Column

From Dev

MS Access SQL: Data from Two Columns on One Row Becomes Data in One Column on Two Rows

From Dev

How do I divide one column in gnuplot?

From Dev

How do I change array dimensions from one dimension to a two dimension with one column

From Dev

Combining two datasets into one and get mean of rows with same attribute for a column

From Dev

How to select pandas row with maximum value in one column, from a group of rows that share two common columns?

From Dev

SQL: How to concatenate two cells from one column of multiple rows if all of the other row's cells are equal

From Dev

How do I insert one value into one column?

From Dev

how do I replace values in one column with strings in another one?

From Dev

How do I require a cell in one column to have a value if a cell in another column (same row) has a value?

From Dev

Group several rows of data into one row by column?

From Dev

move multiple columns to rows and one row as column

From Dev

How to convert multiple rows(but one column) into a single row in MySQL

From Dev

How can I separate one column to two column?

From Dev

How do I get one column from multiple tables to join into one list?

From Dev

How do i get the unique records in a UNION where one column is null for one part of the union?

From Dev

How do I merge two data frames on one column if the column has a different name in each dataset?

From Dev

How do I move one column up in a two column bootstrap layout?

From Dev

How to place a div inside two rows but in one column dynamically?

From Dev

Create table from two rows, one column

From Dev

Merge two rows into one column in R

From Dev

Merge multiple rows into one with more than one row value in a column

Related Related

  1. 1

    how do I aggregate one column for 2 tests into two columns on one row

  2. 2

    How can I concat these two rows into one column in SQL

  3. 3

    How do I create two rows from one row SQL

  4. 4

    Using SQL SMS, how do I combine multiple rows into one row, but maintain all the column data?

  5. 5

    Combine two rows into One Column

  6. 6

    how to get the row in some column in one table

  7. 7

    VBA excel: How do I get data in cells as an array up one row in the same column without selecting?

  8. 8

    How to Pivot one Row into One Column

  9. 9

    MS Access SQL: Data from Two Columns on One Row Becomes Data in One Column on Two Rows

  10. 10

    How do I divide one column in gnuplot?

  11. 11

    How do I change array dimensions from one dimension to a two dimension with one column

  12. 12

    Combining two datasets into one and get mean of rows with same attribute for a column

  13. 13

    How to select pandas row with maximum value in one column, from a group of rows that share two common columns?

  14. 14

    SQL: How to concatenate two cells from one column of multiple rows if all of the other row's cells are equal

  15. 15

    How do I insert one value into one column?

  16. 16

    how do I replace values in one column with strings in another one?

  17. 17

    How do I require a cell in one column to have a value if a cell in another column (same row) has a value?

  18. 18

    Group several rows of data into one row by column?

  19. 19

    move multiple columns to rows and one row as column

  20. 20

    How to convert multiple rows(but one column) into a single row in MySQL

  21. 21

    How can I separate one column to two column?

  22. 22

    How do I get one column from multiple tables to join into one list?

  23. 23

    How do i get the unique records in a UNION where one column is null for one part of the union?

  24. 24

    How do I merge two data frames on one column if the column has a different name in each dataset?

  25. 25

    How do I move one column up in a two column bootstrap layout?

  26. 26

    How to place a div inside two rows but in one column dynamically?

  27. 27

    Create table from two rows, one column

  28. 28

    Merge two rows into one column in R

  29. 29

    Merge multiple rows into one with more than one row value in a column

HotTag

Archive