• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

Tables with style sheets

I want to build a table with style sheets, without using the "<table border="000"><tr><td align="left" valign="top" width="000"> content </td></tr></table> commands. In other words, can I build a table with just stylesheet commands and how do I do it. I will give top points if you can REALLY answer this.
0
dpeavy
Asked:
dpeavy
  • 2
1 Solution
 
dpeavyAuthor Commented:
This was the suggesstion from dagon in May, but it fails in Netscape. So, this answer is wrong:::::::-->>  
<span style="width: 200px; text-align: right; padding-right: 10px; border: 1px">Text aligned right  in a box that is aligned left.</span>
<span style="width: 200px; text-align: left">Text aligned left in a box that follows the first</span>
<P><!-- new row -->
<span style="width: 200px; text-align: right">left side row 2</span>
<span style="width: 200px; text-align: left">right side row 2</span>
0
 
MasseyMCommented:
There is no way to not use the TD TR TABLE tags, but you do not have to include all the ofmratting in each one... For instance,  if each TD withh be align=left valign=top width=0 then you can declare that in your STYLE section:

<STYLE>
TD    {
      text-align: left;
      valign: top;
      text-width:0;
      }
</STYLE>

etc...

This will then apply to every item of that type... Now, if you then use TD ALIGN="RIGHT" it will override the "left" attribute assigned above...

0
 
dpeavyAuthor Commented:
Thank you. I thought that was the case. Thus, if one wants to avoid using tables to do a  layout and use style sheets insted, that person is "SOL" I suppose? That's frustrating because style sheets were supposed to put an end to having to use tables all over the place. As it is, I end up using tables in 90% of my pages, nay, 99%. That's becuase I am used to having Quark/PageMaker style control and the only way to have that type of layout control is with exact tables. I had hoped that style sheets would alleviate that. I will give the 95 points I offered. It's not that you didn't answer the question, just that I'm only willing to give all my points to a solution which uses style sheets. Since there is none, I will keep the points I have left for future questions, otherwise, I'm SOL!!!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now