?
Solved

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

Posted on 2014-01-27
3
Medium Priority
?
324 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
[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
3 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

765 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