Solved

Tables with style sheets

Posted on 1998-08-31
3
262 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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

837 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