Solved

3-D text box

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

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…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

717 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