Turn div to button and add camera icon

Description

The following code shows how to turn div to button and add camera icon.

Example


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css">
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css">
<style type='text/css'>
div.btn {<!-- www . j  a  v a2s  . c o m-->
  display: table;
  margin: 60px;
  vertical-align: middle;
}

div.btn p, div.btn i {
  display: table-cell;
  vertical-align: middle;
}

div.btn i.icon.icon-2x.nomargin {
  margin-top: 0;
}
</style>
</head>
<body>
  <div class='btn'>
    <i class='icon icon-2x icon-camera pull-left nomargin'></i>
    <p>hello world</p>
  </div>
</body>
</html>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well