Solved

3-D text box

Posted on 2013-06-21
5
217 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 42
disable data migrations in visual studio 2017 4 49
Any Way to rotate banner ads from Commission Junction? 2 37
title attribute 5 26
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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 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 benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

733 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