Solved

Tables with style sheets

Posted on 1998-08-31
3
234 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now