Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Tables with style sheets

Posted on 1998-08-31
3
Medium Priority
?
283 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 270 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

609 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