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
Solved

Want to apply border to all divs within a containing div.  What's the CSS syntax?

Posted on 2014-01-27
3
319 Views
Last Modified: 2014-01-27
Want to apply border to all divs within a containing div.  What's the CSS syntax?

Containing div name = dashboard_container

interior div name = quick_views

interior div name = reports


Thanks.
0
Comment
Question by:LB1234
3 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39812203
#dashboard_container div{border:solid;}
http://jsbin.com/OQIfoMAZ/1/edit
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
  <style>
    #dashboard_container div{border:solid;}
  </style>
</head>
<body>
  <div id="dashboard_container">
    <div class="something">stuff</div>
    <div div class="anything">stuff</div>
  </div>
</body>
</html>

Open in new window

0
 
LVL 1

Author Closing Comment

by:LB1234
ID: 39812593
Thanks!
0
 
LVL 4

Expert Comment

by:ravikantninave
ID: 39812600
<style>
    #dashboard_container div{border:solid 1px #000;}
  </style>
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

789 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