Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS question...

Reply
Thread Tools

CSS question...

 
 
Kian
Guest
Posts: n/a
 
      07-25-2003
Hi there,

I would like to transfer my table's style to CSS. The table is as below...

< Table WIDTH="100%" CELLPADDING="4" CELLSPACING="0" BORDER="0">

Can somebody here show me how to use CELLSPACING style in CSS?

table.Outer
{
width: 100%; /*WIDTH="100%"*/
padding: 4;/*CELLPADDING="4"*/
???????? /*CELLSPACING="0"*/
border: 0;/*BORDER="0">*/
}

Thanks,
Kian


222



 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      07-25-2003

"Kian" <(E-Mail Removed)> wrote in message
news:Ca1Ua.74386$(E-Mail Removed) le.rogers.com...
> Hi there,
>
> I would like to transfer my table's style to CSS. The table is as below...


Moving to CSS usually implies abandoning tables for layout totally.

> < Table WIDTH="100%" CELLPADDING="4" CELLSPACING="0" BORDER="0">
>
> Can somebody here show me how to use CELLSPACING style in CSS?


If you really want to use tables then then

table
{
border-spacing: whatever;
....
}

is the CSS substitute for cellspacing, however this is not suported by IE.

Cheers
Richard.


 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      07-25-2003
"Kian" <(E-Mail Removed)> wrote:

>I would like to transfer my table's style to CSS. The table is as below...
>
>< Table WIDTH="100%" CELLPADDING="4" CELLSPACING="0" BORDER="0">
>
>Can somebody here show me how to use CELLSPACING style in CSS?
>
>table.Outer
>{
> width: 100%; /*WIDTH="100%"*/
> padding: 4;/*CELLPADDING="4"*/
>???????? /*CELLSPACING="0"*/
> border: 0;/*BORDER="0">*/
> }


table.Outer {
width: 100%;
border: none;
border-spacing: 0
border-collapse: collapse;
}

table.Outer td, table.Outer th {
padding: 4px;
}

The border-collapse shouln't be required, but IE doesn't support
border-spacing so a workaround is needed.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
confused - html validates, css validates but validate css from the html causes errors Titus A Ducksass - AKA broken-record HTML 6 11-15-2004 12:59 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM
print.css and screen.css tom watson HTML 1 09-09-2003 02:48 PM



Advertisments