Solved

3-D text box

Posted on 2013-06-21
5
213 Views
Last Modified: 2013-06-21
I want to make a single cell table that looks like a textbox.  Meaning I want that 3D look.   How could I do this?
0
Comment
Question by:HLRosenberger
5 Comments
 
LVL 9

Expert Comment

by:TvMpt
ID: 39266329
0
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39266361
Try this one:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
.boxtd{
	box-shadow: 1px 1px 2px #313131 inset;
    display: block;
    height: 30px;
    width: auto;
}
</style>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="boxtd">&nbsp;</td>
  </tr>
</table>
</body>
</html>

Open in new window

0
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39266365
You can add various border styles to your table cell. Like with margins and paddings, you can specifiy different border style / color / width etc for the 4 different sides. The border style can be solid, double, groove, inset, ridge etc. Here's the full spec on CSS borders:

http://www.w3schools.com/cssref/pr_border-style.asp

Have a play with this and see how you get on:

http://jsfiddle.net/ChrisStanyon/Ap4B7/
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 39266596
jagadishdulal

Visual studio tells me box-shadow is not a known CSS property name.  but it seems to work anyway.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 39266661
thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get number of Files in Directory and Sub Directories 2 42
RLDC Reporting in Visual studio 11 16
C# LINQ ForEach() question 6 28
How to resize a div in html 3 11
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

822 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