Re: [WSG] Auto Width [Virus checkedAU]

2004-03-26 Thread russ weakley
Some basic definitions
http://css.maxdesign.com.au/floatutorial/definitions.htm

Block level example
http://css.maxdesign.com.au/floatutorial/introduction02.htm

Inline example
http://css.maxdesign.com.au/floatutorial/introduction01.htm

HTH
Russ


> At 16:27 +1100 26/3/04, [EMAIL PROTECTED] wrote:
>> 
>> So the behaviour you are seeing is what it should be for a block level
>> element - on the other hand if you convert it to an inline element then it
>> will function as you expect - i.e. only fill out to the lenght of the text.
> 
> I'd appreciate a short simple description or definition of theses two
> ideas, any takers?

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] Auto Width [Virus checkedAU]

2004-03-26 Thread stuart
At 16:27 +1100 26/3/04, [EMAIL PROTECTED] wrote:
So the behaviour you are seeing is what it should be for a block level
element - on the other hand if you convert it to an inline element then it
will function as you expect - i.e. only fill out to the lenght of the text.
I'd appreciate a short simple description or definition of theses two 
ideas, any takers?
--
s2
http://stunik.com/
"There is a fine line between the sane and the insane. I walk that 
line. Walk with me." Anon.
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] Auto Width

2004-03-25 Thread Leo J. O'Campo
Sam

You to do two thing first dump the xml prologue and second encase the 
 elements as an inline list.  Although a setting of does auto means 
no width the links are be rendered as block elements due to spacing and 
s in your html.

Leo

On Thursday, March 25, 2004, at 11:56  PM, Sam Walker wrote:

 setting of width:auto should make the box only large enough to 
contain it's elements
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] Auto Width [Virus checkedAU]

2004-03-25 Thread James Ellis
Hi

Remember, an inline element will collapse over linebreaks and cannot 
have block level elements inside it.

Cheers
James
[EMAIL PROTECTED] wrote:



This email is to be read subject to the disclaimer below.

Hi Sam,
 

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] Auto Width [Virus checkedAU]

2004-03-25 Thread Mark . Lynch




This email is to be read subject to the disclaimer below.

Hi Sam,

> the (default) setting of width:auto should make the box only large enough
to contain it's elements, right?
This is not correct - when the width is set to auto the box will fill out
to until it is limited by margins or the parent container - and if the
margins are auto then they will shrink to 0

So the behaviour you are seeing is what it should be for a block level
element - on the other hand if you convert it to an inline element then it
will function as you expect - i.e. only fill out to the lenght of the text.

To make and element display inline use: "display: inline;"

Cheers,
Mark



NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.

If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose  or distribute this communication without the
authority of Ernst & Young.

Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.

Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.

Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)




*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



[WSG] Auto Width

2004-03-25 Thread Sam Walker
I'm having a small problem on a page. I have a div that is located 
inside another div which has a fixed width and margins: auto. The div 
contains nothing more than a couple of links, and as far as my 
understanding of this goes, the (default) setting of width:auto should 
make the box only large enough to contain it's elements, right? 
However, it is making it as wide as possible within the constraints of 
the parent div. Perhaps you can help me out:

http://asan102.spymac.net/test/
This is the page in question. The box I am having troubles with is the 
long green one containing the "Index, Bac, For" links. It is supposed 
to be only as wide as the links, but is stretching to maximum width. I 
could get around this by specifying a width, but that would mean it 
would break if the text is re-sized.

Please note that I have only tested this on Safari for Mac so far : it 
may very well have problems in other browsers, but hopefully it will be 
okay.

here is a quick link to the relevant css:
http://asan102.spymac.net/test/style.css
Any help is greatly appreciated,
Sam Walker
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*