• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

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

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
LB1234
Asked:
LB1234
1 Solution
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
#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
 
LB1234Author Commented:
Thanks!
0
 
ravikantninaveCommented:
<style>
    #dashboard_container div{border:solid 1px #000;}
  </style>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now