Re: CSS Question

2003-09-22 Thread Cole Tuininga

For those that may have interest, the solution I found seems to work in
most browsers, including the venerable Netscape 4.7x.  I got the
solution from:

http://theodorakis.net/tablecentertest.html

-- 
So, make a real effort to avoid getting sucked into all the expensive
lifestyle habits of typical Americans.  Because if you do that, then
people with the money will dictate what you do with your life.
-- Richard Stallman

Cole Tuininga
Lead Developer
Code Energy, Inc
[EMAIL PROTECTED]
PGP Key ID: 0x43E5755D


___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-09-19 Thread Erik Price
On Friday, September 19, 2003, at 10:04  AM, Cole Tuininga wrote:

I would have imagined that with css (using inline style sheet defs), I
would simply do this:
div style=text-align: center
table 
.
.
/table
/div
This works just ducky in Netscape 4.7x, but not my current version of
mozilla.  Does anybody know what I need to do instead?  I don't want to
static position the table, I would like it to be centered.
This problem has plagued me, I have solved it, and then I have 
forgotten how I solved it and had it plague me again.

I am pretty sure that the workaround* is to use

div style=margin-left: auto; margin-right: auto;
  table ...
  .
  .
  .
  /table
/div
But YMMV since I can't remember for sure.  text-align only applies to 
text.

Erik

* I find it ironic that workarounds in CSS are sometimes necessary, 
since one of the reasons people sometimes use CSS is to avoid misusing 
tables for composing a design in HTML, which was itself a workaround 
for the limitations of HTML.

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-12 Thread Erik Price


[EMAIL PROTECTED] wrote:

So, anyone have any really good links for learning CSS?
(Coles ref to w3schools already noted :)
This one might be too basic/introductory for you, but it's very 
well-written and can at least cement the knowledge that you already -do- 
have.  I found it very useful when first learning CSS:

http://www.w3.org/MarkUp/Guide/Style.html

HTH,

Erik

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-12 Thread Jerry Feldman
On 12 Jun 2003 10:00:16 -0400
Greg Rundlett [EMAIL PROTECTED] wrote:

 On Wed, 2003-06-11 at 17:40, [EMAIL PROTECTED] wrote:
  
  
  Actually, what I'm interested in, is using CSS to replace tables for
  
  alignment.
  
 Sitepoint is hawking a book on the subject, and will let you download
 the first four chapters. http://www.sitepoint.com/  Of course their
 site is done with minimal use of tables.
 
 As another practical example, the tikiwiki.sourceforge.net website was
 just done over using CSS rather than tables.
After reading the first 4 chapters of Building Your Own... I bought
the book. I found it very useful. 


-- 
Jerry Feldman [EMAIL PROTECTED]
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9


pgp0.pgp
Description: PGP signature


Re: CSS Question

2003-06-12 Thread Kevin D. Clark

Cole Tuininga [EMAIL PROTECTED] writes:

 The best firewall is a pair of wire cutters.
 -Unknown, from the net

For some reason, this reminded me of the following snippet, which is
from Chuck Shepherd most excellent News of The Weird:

: ** Police in Albany, Ore., were looking this week for an extremely
: incompetent warehouse burglar.  All they know is that they found
: singed bolt cutters and burned clothing beside a live, 440-volt wire,
: along with part of a human scalp.   Albany Democrat-Herald 
: http://www.democratherald.com/articles/2003/06/02/news/local/news02.txt 

The mind boggles.  (and the scalp singes...)

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-12 Thread Greg Rundlett
On Wed, 2003-06-11 at 17:40, [EMAIL PROTECTED] wrote:
 
 
 Actually, what I'm interested in, is using CSS to replace tables for 
 alignment.
 
Sitepoint is hawking a book on the subject, and will let you download the first four 
chapters.
http://www.sitepoint.com/  Of course their site is done with minimal use
of tables.

As another practical example, the tikiwiki.sourceforge.net website was
just done over using CSS rather than tables.
 
-- 
FREePHILE
We are 'Open' for Business
Free and Open Source Software
http://www.freephile.com
(978) 270-2425
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-12 Thread Erik Price


Greg Rundlett wrote:

Sitepoint is hawking a book on the subject, and will let you download the first four 
chapters.
http://www.sitepoint.com/  Of course their site is done with minimal use
of tables.
I was extremely impressed with the sitepoint.com website makeover, it 
looks incredible but like you said, makes almost zero abuses of the 
table tag.

I somehow overlooked this book the last time I was at their site.  As 
another person who is interested in learning how to use CSS to overcome 
table tag addiction, I will check it out.



Erik

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-11 Thread Cole Tuininga

Doh - figured it out.  I wanted the float attribute.  Thanks for
listening to me waste bandwidth.  *sheepish grin*

-- 
The best firewall is a pair of wire cutters.
-Unknown, from the net

Cole Tuininga
Lead Developer
Code Energy, Inc
[EMAIL PROTECTED]
PGP Key ID: 0x43E5755D


___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-11 Thread Erik Price


Cole Tuininga wrote:

As I understand, the correct way to do it now would be with style
sheets.  However, I can't seem to figure out the attribute to use.  The
closest I could find was text-align, but that seems to only work on
text (which does make sense).
I've been using www.w3schools.com (a very handy reference) to pick up
xhtml and css, but I couldn't find anything about this in there. 
Anybody have any hints, pointers, etc?
The CSS2 spec lets you get really detailed about exactly where you want 
stuff to go -- but most browsers don't have full support for it yet. 
But it sounds like you've discovered float does the job.

If you ever want to center-align an image, one recommended way is to 
set its margin-left and margin-right properties to auto.  This is a 
clip from the CSS on my personal site (which has a centered image):

div.glamour img {
border-color: #FFF;
border-width: thin;
}
div.glamour p {
width: 35em;
text-align: center;
margin-left: auto;
margin-right: auto;
}
I'm centering the entire div whose class is glamour but you can 
equally apply this to an img tag.



Erik

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: CSS Question

2003-06-11 Thread pll

In a message dated: 11 Jun 2003 15:44:34 EDT
Cole Tuininga said:

I apologize if this is off topic. 
[...snip...]

I don't think it is, since

I'm attempting to finally learn the correct way of doing things with
xhtml and css.

A) me too
B) I'm using Linux, and this is a linux list ;)

Actually, what I'm interested in, is using CSS to replace tables for 
alignment.

I should probably get me a book on CSS, but, well, I'm lazy! 

So, anyone have any really good links for learning CSS?
(Coles ref to w3schools already noted :)

Thanks,
-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

 If you're not having fun, you're not doing it right!


___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss