Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > style sheets left/right align simultaneously?

Reply
Thread Tools

style sheets left/right align simultaneously?

 
 
Keith Wiley
Guest
Posts: n/a
 
      11-07-2003
Say you want a layout where you have places aligned on the left and then a
date on the same line aligned at the right:

Colorado 2000 - present
New York 1995 - 1999
Rhode Island Aug 1993 - 1994

etc.

How would you do this?

__________________________________________________ ______________________
Keith Wiley
http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley

"Yet mark his perfect self-contentment, and hence learn his lesson,
that to be self-contented is to be vile and ignorant, and that to
aspire is better than to be blindly and impotently happy."
-- Edwin A. Abbott, Flatland
__________________________________________________ ______________________
 
Reply With Quote
 
 
 
 
Brett
Guest
Posts: n/a
 
      11-07-2003
Here is one way to do what your asking (using css):

<span style="text-align: left">left text</span><span style="position:
absolute; right: 0;">right text</span>

--
Brett
Provision Tech
http://www.provisiontech.net

"Keith Wiley" <> wrote in message
news .edu...
> Say you want a layout where you have places aligned on the left and then a
> date on the same line aligned at the right:
>
> Colorado 2000 - present
> New York 1995 - 1999
> Rhode Island Aug 1993 - 1994
>
> etc.
>
> How would you do this?
>
> __________________________________________________ ______________________
> Keith Wiley
> http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley
>
> "Yet mark his perfect self-contentment, and hence learn his lesson,
> that to be self-contented is to be vile and ignorant, and that to
> aspire is better than to be blindly and impotently happy."
> -- Edwin A. Abbott, Flatland
> __________________________________________________ ______________________



 
Reply With Quote
 
 
 
 
Michel
Guest
Posts: n/a
 
      11-07-2003
nice.

But.... what's the plus to using tables in this case?

Michel

"Brett" <> wrote in message
news:...
> Here is one way to do what your asking (using css):
>
> <span style="text-align: left">left text</span><span style="position:
> absolute; right: 0;">right text</span>
>
> --
> Brett
> Provision Tech
> http://www.provisiontech.net
>
> "Keith Wiley" <> wrote in message
> news .edu...
> > Say you want a layout where you have places aligned on the left and then

a
> > date on the same line aligned at the right:
> >
> > Colorado 2000 - present
> > New York 1995 - 1999
> > Rhode Island Aug 1993 - 1994
> >
> > etc.
> >
> > How would you do this?
> >
> > __________________________________________________ ______________________
> > Keith Wiley
> > http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley
> >
> > "Yet mark his perfect self-contentment, and hence learn his lesson,
> > that to be self-contented is to be vile and ignorant, and that to
> > aspire is better than to be blindly and impotently happy."
> > -- Edwin A. Abbott, Flatland
> > __________________________________________________ ______________________

>
>



 
Reply With Quote
 
Brett
Guest
Posts: n/a
 
      11-07-2003
There is no plus to using tables (other than, its what most of are used to).
This can be accomplished using css which is always better for content
layout.

--
Brett
Provision Tech
http://www.provisiontech.net

"Michel" <> wrote in message
news:boh7vn$bn$...
> nice.
>
> But.... what's the plus to using tables in this case?
>
> Michel
>
> "Brett" <> wrote in message
> news:...
> > Here is one way to do what your asking (using css):
> >
> > <span style="text-align: left">left text</span><span style="position:
> > absolute; right: 0;">right text</span>
> >
> > --
> > Brett
> > Provision Tech
> > http://www.provisiontech.net
> >
> > "Keith Wiley" <> wrote in message
> > news .edu...
> > > Say you want a layout where you have places aligned on the left and

then
> a
> > > date on the same line aligned at the right:
> > >
> > > Colorado 2000 - present
> > > New York 1995 - 1999
> > > Rhode Island Aug 1993 - 1994
> > >
> > > etc.
> > >
> > > How would you do this?
> > >
> > >

__________________________________________________ ______________________
> > > Keith Wiley
> > > http://www.unm.edu/~keithw

http://www.mp3.com/KeithWiley
> > >
> > > "Yet mark his perfect self-contentment, and hence learn his lesson,
> > > that to be self-contented is to be vile and ignorant, and that to
> > > aspire is better than to be blindly and impotently happy."
> > > -- Edwin A. Abbott,

Flatland
> > >

__________________________________________________ ______________________
> >
> >

>
>



 
Reply With Quote
 
Keith Wiley
Guest
Posts: n/a
 
      11-07-2003
I only recently discovered stylesheets. Until now, I was using tables for
all kinds of layouts, and believe me, I've become a master. Check out
just the front page of my website if you want a taste of the lengths I've
gone to with tables. However, I was wondering much I could get with
one or the other. In particular, I'm trying to layout my resume, and I
thought it might be messy to mix stylesheets with tables. But perhaps
that's the right way to do it.

On Fri, 7 Nov 2003, Michel wrote:

> nice.
>
> But.... what's the plus to using tables in this case?
>
> Michel
>
> "Brett" <> wrote in message
> news:...
> > Here is one way to do what your asking (using css):
> >
> > <span style="text-align: left">left text</span><span style="position:
> > absolute; right: 0;">right text</span>
> >
> > --
> > Brett
> > Provision Tech
> > http://www.provisiontech.net
> >
> > "Keith Wiley" <> wrote in message
> > news .edu...
> > > Say you want a layout where you have places aligned on the left and then

> a
> > > date on the same line aligned at the right:
> > >
> > > Colorado 2000 - present
> > > New York 1995 - 1999
> > > Rhode Island Aug 1993 - 1994
> > >
> > > etc.
> > >
> > > How would you do this?
> > >
> > > __________________________________________________ ______________________
> > > Keith Wiley
> > > http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley
> > >
> > > "Yet mark his perfect self-contentment, and hence learn his lesson,
> > > that to be self-contented is to be vile and ignorant, and that to
> > > aspire is better than to be blindly and impotently happy."
> > > -- Edwin A. Abbott, Flatland
> > > __________________________________________________ ______________________

> >
> >

>
>
>


__________________________________________________ ______________________
Keith Wiley
http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley

"Yet mark his perfect self-contentment, and hence learn his lesson,
that to be self-contented is to be vile and ignorant, and that to
aspire is better than to be blindly and impotently happy."
-- Edwin A. Abbott, Flatland
__________________________________________________ ______________________
 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-07-2003
On Fri, 7 Nov 2003 14:42:12 -0700, Keith Wiley <> wrote:

: Say you want a layout where you have places aligned on the left and then a
: date on the same line aligned at the right:
:
: Colorado 2000 - present
: New York 1995 - 1999
: Rhode Island Aug 1993 - 1994

Use tables, my man.

Right-align the right TD.

Sid

 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-07-2003
On Fri, 7 Nov 2003 14:52:29 -0800, "Brett" <> wrote:

: Here is one way to do what your asking (using css):
:
: <span style="text-align: left">left text</span><span style="position:
: absolute; right: 0;">right text</span>


Jeeezzzzzzzzzzz - learn tables, please.

Sid

 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-07-2003
On Fri, 7 Nov 2003 15:06:34 -0800, "Brett" <> wrote:

: There is no plus to using tables (other than, its what most of are used to).


This is a very relevant use of tables.

Why drive a bicycle 100 km when you can take a car?

Sid



 
Reply With Quote
 
Brett
Guest
Posts: n/a
 
      11-07-2003
o.k...maybe we need clarification on which one is the car. You tell me
which one is quicker to type.

<table width="100%" border="1" cellpadding="0" cellspacing="0" summary="">
<tr valign="top">
<td valign="top" width="50%" align="left">left text</td><td valign="top"
width="50%" align="right">right text</td>
</tr>
</table>

or

<span style="text-align: left">left text</span>
<span style="position:absolute; right: 0;">right text</span>

Now, if you still think a table is quicker...what if after designing this I
decided I wanted "right text" to actually be on the left and I had created
100 static pages. If I used tables I would have to go into every file and
remove </td><td valign="top" width="50%" align="right"> and replace it with
a space (that's a lot of work). If I had created the layout with css. I
would just go into my one *.css file and remove the "position:absolute;
right: 0;" and I'm done and I just saved myself quite a bit of work.
--
Brett
Provision Tech
http://www.provisiontech.net

"Sid Ismail" <> wrote in message
news:...
> On Fri, 7 Nov 2003 15:06:34 -0800, "Brett" <> wrote:
>
> : There is no plus to using tables (other than, its what most of are used

to).
>
>
> This is a very relevant use of tables.
>
> Why drive a bicycle 100 km when you can take a car?
>
> Sid
>
>
>



 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      11-08-2003
Brett wrote:

><span style="text-align: left">left text</span><span style="position:
>absolute; right: 0;">right text</span>


The first span is superfluous.

--
Spartanicus
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I get the style sheets (or style object) of the wholedocument? Jake Barnes Javascript 6 04-12-2009 08:15 AM
text-align vs align tshad HTML 1 06-23-2005 10:29 PM
Style sheets, include one style within another (not inheritance) foldface@yahoo.co.uk HTML 1 11-24-2003 01:37 PM
export to Excel - multiple sheets & renaming sheets Carl Corcoran ASP General 1 11-12-2003 07:28 PM
how to Align text left & vertical align middle Kay ASP .Net 2 07-25-2003 08:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57