|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
TRANSLATE this table as a CSS
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#2 (permalink) | ||||||||||||||
|
sk8 d1tches!
![]() |
Quote:
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!" ...
|
||||||||||||||
|
|
|
|
#3 (permalink) |
|
PC Gamer
![]() |
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 |
|
|
|
|
|
#4 (permalink) | ||||||||||||||
|
sk8 d1tches!
![]() |
Quote:
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!" ...
|
||||||||||||||
|
|
|
|
#5 (permalink) | |
|
PC Gamer
![]() |
Quote:
is it possible to define cellpadding -spacing from a CSS style sheet? |
|
|
|
|
|
|
#6 (permalink) | |||||||||||||
|
Pwnererer.
![]() |
I don't think those 2 have a variable in CSS. But maybe margin or width would work?
__________________
[CS:S Gun Game (ADMIN)] [My CPU-Z] [FAQ - How to make a portable USB charger] [OCN Wallpapers] [OCN Wallpapers 2] [OCN Wallpapers 3]
|
|||||||||||||
|
|
|
|
#8 (permalink) | |||||||||||||
|
sk8 d1tches!
![]() |
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!" ...
|
|||||||||||||
|
|
|
|
#9 (permalink) | ||||||||||||
|
Jäger
![]() |
Another useful resource for you is W3Schools.
|
||||||||||||
|
|
|
|
#10 (permalink) | |||||||||||||
|
Bifford
![]() |
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.
Last edited by BFRD : 08-08-07 at 10:35 PM Reason: the code tag, borked up my spacing... |
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|