Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-26-2011, 08:59 PM   PM User | #1
waynefrank
New Coder

 
Join Date: Jun 2003
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
waynefrank is an unknown quantity at this point
Question In CSS, can you specify cell borders ??

In CSS, you can specify an id selector that specifies table borders when the id is used:

#para {
position:relative;
border-collapse:collapse;
border-style:ridge;
border-color:"#0000ff";
}

My question: In an id selector, can you specify the borders of individual table cells?

I know you can go in to the HTML for each table, and specify borders for each cell individually.

Thanks, Wayne

PS This is related to my earlier quesiton, Table border question.
waynefrank is offline   Reply With Quote
Old 04-26-2011, 09:10 PM   PM User | #2
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
Is this any help to you.

Tables I hardly ever use. This is the best I can do.

Frank
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.
effpeetee is offline   Reply With Quote
Old 04-26-2011, 09:10 PM   PM User | #3
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Then I'll post the same response I did in your other thread.

Quote:
I have to ask why are you using tables at all? Read about why tables for layouts are bad here.
__________________
Teed
teedoff is offline   Reply With Quote
Old 04-26-2011, 09:24 PM   PM User | #4
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
short answer, yes, but it can be a pain and some browsers don't like it very much.

The fact that your also using postion:relative makes me wonder if what you are doing is a bad idea in the first place, though. You might want to look at the link Teedoff provided.

a more informative article can be found here - http://webdesign.about.com/od/layout/a/aa111102a.htm
DanInMa is offline   Reply With Quote
Old 04-26-2011, 09:59 PM   PM User | #5
waynefrank
New Coder

 
Join Date: Jun 2003
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
waynefrank is an unknown quantity at this point
OK from reading one of the links posted, I now see that I can code:

#para td { ...

The td is new. That makes it apply to the cells, instead of the whole table.

Thanks, all
waynefrank is offline   Reply With Quote
Reply

Bookmarks

Tags
border, css, table cell

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:26 PM.


Advertisement
Log in to turn off these ads.