Solved

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

Posted on 2014-01-27
3
320 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
GET error with Font Awesome 3 28
Bootstrap 3 - Style a dropdown 1 25
Wordpress themes CSS? 6 30
Hide and Unhide Table 6 24
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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)

679 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