Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Internet & the Web   »   About Table Border

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Dec 28, 2008, 10:40 AM
aliaib97
New Member
aliaib97 is offline
 
Join Date: Dec 2008
Posts: 1
aliaib97 See this member's comment history on his/her Profile page.
About Table Border

can any one write me a class which can be applied to a table and will change the outer borders of that table only i want to create a box around my contents in a web page. setting border="1" set border of cells as well. i dont want to use inner table just want a CSS solution. something like this

PART OF MY PAGE ..MAY CONTAINS TABLE AND OTHERS
CLASS APPLIED ABOVE SHOULD HAVE NO EFFECT HERE
OFCOURSE BORDER WILL COLLAPSE IN ACTUAL HTML
__________________________________________________ ________
| |
| |
| |
| |
| |
| |
| |
| | |_________________________________________________ _______|

Reply With Quote
 
     

Answers
 
 
Old Dec 28, 2008, 12:44 PM   #2  
Senior Member
vingogly is offline
 
vingogly's Avatar
 
Join Date: Oct 2007
Location: Naperville, Illinois
Posts: 726
vingogly See this member's comment history on his/her Profile page.vingogly See this member's comment history on his/her Profile page.
If you apply the style to the table rather than the rows or cells, you'll get a border around the table only. Try this for the CSS style:

Code:
<style type="text/css">
    .bordered-table
   {
        border: 1px solid;
   }
</style>
and here's an example of applying it to a table:

Code:
<table class='bordered-table'>
<tr><td>one</td><td>two</td><td>three</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
</table>
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
border crossing with a felony
(4 replies)
what to use to remove border
(1 replies)
usa border crossing
(2 replies)
mexican border
(7 replies)
Wallpaper border
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 03:32 PM.