Solved

Trying to design a box

Posted on 2014-03-31
5
93 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
  • 3
5 Comments
 
LVL 52

Accepted Solution

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

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 52

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 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
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.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

744 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

10 Experts available now in Live!

Get 1:1 Help Now