?
Solved

Trying to design a box

Posted on 2014-03-31
5
Medium Priority
?
99 Views
Last Modified: 2014-03-31
Why does this not work.
No borders show
no background shows
http://real20cardkeno.com/test.asp
Why does this not work ?
0
Comment
Question by:isnoend2001
[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
5 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 1000 total points
ID: 39968194
Try

<!DOCTYPE html>

<html lang="en">
  <head>
  <title>test</title>
    <meta charset="utf-8">
	<style type= "text/css">	
	
	.pitchbox{	 
	 border: 1px solid #0066ff;
	width: 160px;
	height: 720px;
 padding-left: 5px; 
 padding-right: 5px;  
 padding-top: 2px;
  padding-bottom: 3px;
  background-color: rgb(227,227,227);
  text-align: center;
   }             
	
	</style>
  </head>
 
  <body>
 <div id="pitchbox" class=pitchbox>
  Roof pitch
  </div>
  </body>
</html>

Open in new window

0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39968200
Ooops that  should be  <div id="pitchbox" class="pitchbox">

Try and do your design using the class and not the id.  You simply set your css to a class by using a . instead of # (for id)
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39968202
Dave, did you submit twice is or is that a glitch.  2nd time I saw this today.
0
 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1000 total points
ID: 39968193
Because '.pitchbox' is a class and you put id="pitchbox" in the div.  They need to both be the same kind.  Both class or both id.
0
 

Author Closing Comment

by:isnoend2001
ID: 39968226
Thanks
Should have know that
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

762 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