Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 08-06-07   #1 (permalink)
PC Gamer
 
intel

Join Date: Jun 2007
Location: Atlantis
Posts: 2,200

Rep: 106 blade007 is acknowledged by manyblade007 is acknowledged by many
Unique Rep: 88
Trader Rating: 13
Question TRANSLATE this table as a CSS

what would be the CSS style for this table..
Code:
<table width="100%" align="center" cellpadding="5" cellspacing="1">
__________________
Aumotocnic - "An unfortunate member of the overclock.net insomnia club"

Last edited by BFRD : 08-08-07 at 10:28 PM
blade007 is offline blade007's Gallery   Reply With Quote
Old 08-06-07   #2 (permalink)
sk8 d1tches!
 
s1rrah's Avatar
 
intel nvidia

Join Date: Oct 2006
Location: houston, tx
Posts: 3,236

Rep: 520 s1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famous
Unique Rep: 307
Trader Rating: 9
Default

Quote:
Originally Posted by blade007 View Post
what would be the CSS style for this table..
Code:
<table width="100%" align="center" cellpadding="5" cellspacing="1">
+rep to anyone that helps
Well you can't really create a table with CSS styles ...

More correctly ... you can format the contents of the table any number of ways using CSS styles (text effects, etc.) ... but you can't really replicate a table with CSS styles.

One thing you might consider, though ... if your just not wanting to use tables, ...

You *can* use LAYERS to define the same spatial layout qualities that old school HTML tables are used for.

Investigate the <DIV> tag and the <LAYER> tag for more information ...

Feel free to ask more questions if you need them ... I'm a bit experienced with such stuff.

__________________
...
Aumotocnic: "An unfortunate member of the overclock.net insomnia club"
...
OSAMT: "Member of OCN Songwriter and Musician Thread"
...
OHPC "Member of OCN Headphone Club!"
...

System: The Maker(tm)
CPU
Q6700 @ 3.8ghz
Motherboard
Asus Maximus Formula
Memory
2gig Corsair 1066mhz @ 1143mhz
Graphics Card
EVGA 8800GT SC
Hard Drive
2 x 500gig WD SATAII
Sound Card
Auzentech Prelude 7.1
Power Supply
TT PurePower 500 Watt
Case
TT Armor w/ 250mm fan
CPU cooling
T.R.U.E. (lapped)
GPU cooling
TT ND-1
OS
XP Home
Monitor
Samsung 226BW
s1rrah is offline Overclocked Account   Reply With Quote
Old 08-06-07   #3 (permalink)
PC Gamer
 
intel

Join Date: Jun 2007
Location: Atlantis
Posts: 2,200

Rep: 106 blade007 is acknowledged by manyblade007 is acknowledged by many
Unique Rep: 88
Trader Rating: 13
Default

i meant something like this..

.table1
{
font-size: 16px;
width:100%;
align:center;
}

and to reference this, u would use <table class="table1">, but the thing is i dont know what to put these properties in the CSS.. cellpadding="5" cellspacing="1", u cant use cellspacing:1 for example becasue its not valid
__________________
Aumotocnic - "An unfortunate member of the overclock.net insomnia club"
blade007 is offline blade007's Gallery   Reply With Quote
Old 08-06-07   #4 (permalink)
sk8 d1tches!
 
s1rrah's Avatar
 
intel nvidia

Join Date: Oct 2006
Location: houston, tx
Posts: 3,236

Rep: 520 s1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famous
Unique Rep: 307
Trader Rating: 9
Default

Quote:
Originally Posted by blade007 View Post
i meant something like this..

.table1
{
font-size: 16px;
width:100%;
align:center;
}

and to reference this, u would use <table class="table1">, but the thing is i dont know what to put these properties in the CSS.. cellpadding="5" cellspacing="1", u cant use cellspacing:1 for example becasue its not valid
Why not just define your table with it's appropriate CELLPADDING, CELLSPACING variables and then just use a "class=" statement in a <DIV> tag or as a part of your opening <TD> tag?

Would that work?
__________________
...
Aumotocnic: "An unfortunate member of the overclock.net insomnia club"
...
OSAMT: "Member of OCN Songwriter and Musician Thread"
...
OHPC "Member of OCN Headphone Club!"
...

System: The Maker(tm)
CPU
Q6700 @ 3.8ghz
Motherboard
Asus Maximus Formula
Memory
2gig Corsair 1066mhz @ 1143mhz
Graphics Card
EVGA 8800GT SC
Hard Drive
2 x 500gig WD SATAII
Sound Card
Auzentech Prelude 7.1
Power Supply
TT PurePower 500 Watt
Case
TT Armor w/ 250mm fan
CPU cooling
T.R.U.E. (lapped)
GPU cooling
TT ND-1
OS
XP Home
Monitor
Samsung 226BW
s1rrah is offline Overclocked Account   Reply With Quote
Old 08-06-07   #5 (permalink)
PC Gamer
 
intel

Join Date: Jun 2007
Location: Atlantis
Posts: 2,200

Rep: 106 blade007 is acknowledged by manyblade007 is acknowledged by many
Unique Rep: 88
Trader Rating: 13
Default

Quote:
Originally Posted by s1rrah View Post
Why not just define your table with it's appropriate CELLPADDING, CELLSPACING variables and then just use a "class=" statement in a <DIV> tag or as a part of your opening <TD> tag?

Would that work?
so i can reduce load time, since i have +5 tables on the page im workin on,

is it possible to define cellpadding -spacing from a CSS style sheet?
__________________
Aumotocnic - "An unfortunate member of the overclock.net insomnia club"
blade007 is offline blade007's Gallery   Reply With Quote
Old 08-06-07   #6 (permalink)
Pwnererer.
 
Boris4ka's Avatar
 
intel nvidia

Join Date: Mar 2006
Location: San Francisco, CA
Posts: 3,195

Trader Rating: 19
Default

I don't think those 2 have a variable in CSS. But maybe margin or width would work?

System: über pwnage
CPU
E6600 3.0GHz 1.4v
Motherboard
Gigabyte GA-P35-S3L
Memory
2x2GB G.Skill 6400 835MHz
Graphics Card
EVGA 8800GTS 320MB
Hard Drive
320GB .10 + 80GB .7
Sound Card
Onboard HD Audio
Power Supply
Rosewill Performance 550W
Case
Centurion 5 w/ side window
CPU cooling
Golden Orb 2 - lapped
GPU cooling
Stock fan
OS
Vista Ultimate x64
Monitor
X191W 19"w + Sony 15" LCDs
Boris4ka is offline Overclocked Account Boris4ka's Gallery   Reply With Quote
Old 08-06-07   #7 (permalink)
PC Gamer
 
intel

Join Date: Jun 2007
Location: Atlantis
Posts: 2,200

Rep: 106 blade007 is acknowledged by manyblade007 is acknowledged by many
Unique Rep: 88
Trader Rating: 13
Default

ok, i think im just going to have to define cell padding and spacing for each table, and have the rest of the properties(width, font etc.) in the CSS; thanks for the help, +rep..
__________________
Aumotocnic - "An unfortunate member of the overclock.net insomnia club"
blade007 is offline blade007's Gallery   Reply With Quote
Old 08-06-07   #8 (permalink)
sk8 d1tches!
 
s1rrah's Avatar
 
intel nvidia

Join Date: Oct 2006
Location: houston, tx
Posts: 3,236

Rep: 520 s1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famouss1rrah is becoming famous
Unique Rep: 307
Trader Rating: 9
Default

Also ... read this thread: http://forums.devshed.com/css-help-1...ing-43178.html

...

some interesting stuff including claims of manipulating table padding via styles ...

good luck.
__________________
...
Aumotocnic: "An unfortunate member of the overclock.net insomnia club"
...
OSAMT: "Member of OCN Songwriter and Musician Thread"
...
OHPC "Member of OCN Headphone Club!"
...

System: The Maker(tm)
CPU
Q6700 @ 3.8ghz
Motherboard
Asus Maximus Formula
Memory
2gig Corsair 1066mhz @ 1143mhz
Graphics Card
EVGA 8800GT SC
Hard Drive
2 x 500gig WD SATAII
Sound Card
Auzentech Prelude 7.1
Power Supply
TT PurePower 500 Watt
Case
TT Armor w/ 250mm fan
CPU cooling
T.R.U.E. (lapped)
GPU cooling
TT ND-1
OS
XP Home
Monitor
Samsung 226BW
s1rrah is offline Overclocked Account   Reply With Quote
Old 08-06-07   #9 (permalink)
Jäger
 
t4ct1c47's Avatar
 
intel nvidia

Join Date: Dec 2005
Location: Staffordshire
Posts: 8,679
Blog Entries: 5

FAQs Submitted: 2
Folding Team Rank: 208
Hardware Reviews: 4
Trader Rating: 9
Default

Another useful resource for you is W3Schools.

System: Difference Engine
CPU
Core i7 920 4.0Ghz
Motherboard
Rampage II Extreme
Memory
6GB Dominator 1600Mhz
Graphics Card
GeForce GTX275 SLi
Hard Drive
320GB (x2) RAID 0 + 500GB SATA
Sound Card
Xonar D2X
Power Supply
Corsair HX1000
Case
Silverstone Raven RV01
CPU cooling
TRUE Black
OS
Windows 7 Pro x64
Monitor
Samsung T260 26"
1 Million+ Folding at Home points
t4ct1c47 is offline I fold for Overclock.net Overclocked Account t4ct1c47's Gallery   Reply With Quote
Old 08-08-07   #10 (permalink)
Bifford
 
BFRD's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Carrollton, TX
Posts: 5,106

FAQs Submitted: 8
Folding Team Rank: 124
Hardware Reviews: 2
Trader Rating: 12
Default

like this?

Code:
<html>
<head>
<title>Untitled Page</title>
<styletype="text/css">
.test
{
 width:100%;
 background:blue;
 border:0;
}
 
.test tr td
{
 margin:1px;
 padding:5px;
}
</style>
</head>
<body>
<table width="100%" align="center" cellpadding="5" cellspacing="1" border="0" bgcolor="blue">
<tr>
 <td>This is a test</td>
</tr>
</table>
<hr/>
<table class="test">
<tr>
 <td>This is a test</td>
</tr>
</table>
</body>
</html>

P.S. You can't offer REP to try and entice someone to answer your thread.
__________________
Helpful Posts (Hopefully )
Overclocker's Calculator
Photo Editing - B&W w/Color Accents

Real Programmers Don't Document
If it was hard to write, it should be hard to understand.

System: Main Rig
CPU
E6700 Conroe
Motherboard
Abit QuadGT
Memory
2GB G.Skill PC2 8000 (HZ)
Graphics Card
EVGA 8800GTX
Hard Drive
150 GB Raptor X / 300GB Storage
Sound Card
Audigy 2 ZS
Power Supply
PCP&C Silencer 750
Case
Rocketfish
CPU cooling
Stock (for now)
GPU cooling
Stock
OS
Vista Ultimate
Monitor
Dual Samsung 204b
Overclock.net - 2009 Chimp Challenge Champions 2 Million+ Folding at Home points

Last edited by BFRD : 08-08-07 at 10:35 PM Reason: the code tag, borked up my spacing...
BFRD is offline I fold for Overclock.net Overclocked Account BFRD's Gallery   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 02:10 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2010 Shogun Interactive Development. Most rights reserved.
Page generated in 0.16456 seconds with 8 queries