Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Twitter Bootstrap: How To Make A Div Just Like This Image?

Posted on 2013-06-18
1
Medium Priority
?
561 Views
Last Modified: 2013-06-18
How do I make a div with Twitter Bootstrap just like this image?

Twitter Bootstrap Tile
0
Comment
Question by:GenericCog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 39257124
Your just going to add the box inside one of your div.span's and give it it's own class as you need to.   If you want to keep with the same dimensions, then use div.spans for the size such that if the box is span6, the inside div's need to each be span3.

Bootstrap grid http://twitter.github.io/bootstrap/scaffolding.html#gridSystem

Sample http://jsbin.com/oxopag/1/edit
<!DOCTYPE html>
<html>
<head>
<style>
  .box
 {
  width:300px;
  height:300px;
   background-color:green;
    padding:5px;
  }
.innerbox
  {
   width:140px;
   float:left;}
  </style>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="box">
    <div>icons here</div>
    <div class="innerbox">Left</div>
    <div class="innerbox">right</div>
 </div>
   
</body>
</html>

Open in new window

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question