Solved

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

Posted on 2014-01-27
3
317 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
Comment Utility
#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
Comment Utility
Thanks!
0
 
LVL 4

Expert Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
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…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now