CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 5th, 2004, 08:30 AM
helz helz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 365 helz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 45 m 38 sec
Reputation Power: 6
can css set custom borders for a table? (<table>)

Hi all, what i want is to customise the borders of a table...
i know that <div>'s can have custom borders but, for the way that the page works i used table tags <table>. (very little experience of using <div>)

is there a way that css can manipulate the borders of a table?
i tried using this css:

.nmhead {
border-color:#cccccc;
border-top:border-top-style:none;
border-left:border-left-style:none;
border-right:border-right-style:double;
border-bottom:border-bottom-width:5px;
}

and then in the table doing this:
<td class='nmhead'>

but it didnt work (attached is what i want it to look like)

any ideas?
Attached Images
File Type: bmp table.bmp (15.8 KB, 118 views)

Reply With Quote
  #2  
Old April 5th, 2004, 09:39 AM
khwang's Avatar
khwang khwang is offline
Über nübe
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Babylon 4
Posts: 240 khwang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 27 sec
Reputation Power: 6
Something like this?

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>
<style type="text/css">



.nmhead {
border-color:#cccccc;
border-top-style:none;
border-left-style:none;
border-right-style:double;
border-bottom:1px solid #cccccc;

}

.nmhead2 {
border-color:#cccccc;
border-top-style:none;
border-left-style:none;
border-right:1px solid #cccccc;
border-bottom:1px solid #cccccc;

}

</style>


<table cellspacing="0" cellpadding="2">
<tr>
<td class='nmhead'>test 1</td>
<td class='nmhead2'>123</td>
<td class='nmhead2'>123</td>
<td class='nmhead'>123</td>
<td class='nmhead2'>369</td>

</tr>


<tr>
<td class='nmhead'>test 2</td>
<td class='nmhead2'>231</td>
<td class='nmhead2'>231</td>
<td class='nmhead'>213</td>
<td class='nmhead2'>675</td>

</tr>


</table>


</body>
</html>
__________________
Hello, old friend...

Reply With Quote
  #3  
Old April 5th, 2004, 10:04 AM
helz helz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 365 helz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 45 m 38 sec
Reputation Power: 6
Thanks for that
found out the error in my code

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > can css set custom borders for a table? (<table>)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT