Solved

Tables with style sheets

Posted on 1998-08-31
3
267 Views
Last Modified: 2010-04-09
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
Comment
Question by:dpeavy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:dpeavy
ID: 1837263
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
 
LVL 10

Accepted Solution

by:
MasseyM earned 90 total points
ID: 1837264
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
 

Author Comment

by:dpeavy
ID: 1837265
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question