![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Or alternatively: .x250, .x270, .x278 { float:right; margin: 0 0 1em 1em; text-align: center; border: thin solid black; } .x250 { width: 250px; } .x270 { width: 270px; } .x278 { width: 278px; } |
#12
| |||
| |||
|
|
On Mon, 14 Jul 2003 20:37:18 +0100, Headless <invalid_address (AT) dna (DOT) ie wrote: Stephen Poley <sbpoley (AT) xs4all (DOT) nl> wrote: I used to do the same thing, I've moved those widths to an external stylesheet because if an image has a caption wider than the image so that it wraps, I prefer it not to wrap when my external stylesheets are not used (UA not capable of retrieving my external stylesheets, or disabled by the user). With the consequence that every photo needs its own style in the external stylesheet. Doesn't seem like an attractive option to me. .x250{width:250px} in an external stylesheet, or style="width:250px" in the markup. Why would the first option be "unattractive"? .... No, it's unattractive because one ends up with something like .... Or alternatively: .x250, .x270, .x278 { float:right; margin: 0 0 1em 1em; text-align: center; border: thin solid black; } .x250 { width: 250px; } .x270 { width: 270px; } .x278 { width: 278px; } Or alternatively: |
#13
| |||
| |||
|
|
Stephen Poley <sbpoley (AT) xs4all (DOT) nl> writes: Or alternatively: .x250, .x270, .x278 { float:right; margin: 0 0 1em 1em; text-align: center; border: thin solid black; } .x250 { width: 250px; } .x270 { width: 270px; } .x278 { width: 278px; } The other alternative, provided you don't mind losing browser support for the stylesheets a bit earlier than normal, is: tag class="photo x250" photo { float: right; ... } .x250 { width: 250px; } I don't see it as particularly useful in this case. |
#14
| |||
| |||
|
|
No, it's unattractive because one ends up with something like .x250 { float:right; margin: 0 0 1em 1em; text-align: center; border: thin solid black; width: 250px; } .x270 { float:right; margin: 0 0 1em 1em; text-align: center; border: thin solid black; width: 270px; } .x278 { float:right; margin: 0 0 1em 1em; text-align: center; border: thin solid black; width: 278px; } etc, etc, etc. Plus the accompanying class attributes. |
#15
| |||
| |||
|
|
On 15 Jul 2003 12:11:01 +0100, Chris Morris <c.i.morris (AT) durham (DOT) ac.uk tag class="photo x250" I was under the impression that this lost you an awful lot of browser support, but I could be wrong. Which browsers support this? |
#16
| |||
| |||
|
|
On 15 Jul 2003 14:07:42 +0100, Chris Morris <c.i.morris (AT) durham (DOT) ac.uk tag class="photo x250" Not tested in IE 5, but from memory I think it works okay. Can anyone confirm that one? I thought that IE 6 was the first IE version that supported this (on Windows) but it may be my memory that is faulty. |
#17
| |||
| |||
|
|
Stephen Poley <sbpoley (AT) xs4all (DOT) nl> writes: On 15 Jul 2003 14:07:42 +0100, Chris Morris <c.i.morris (AT) durham (DOT) ac.uk tag class="photo x250" Not tested in IE 5, but from memory I think it works okay. Can anyone confirm that one? I thought that IE 6 was the first IE version that supported this (on Windows) but it may be my memory that is faulty. Right, tested it now, it works fine in IE5 Win. I'll have to start using this more often myself, I think. |
#18
| |||
| |||
|
|
In article <87znjeokbf.fsf (AT) dinopsis (DOT) dur.ac.uk>, Chris Morris wrote: Stephen Poley <sbpoley (AT) xs4all (DOT) nl> writes: On 15 Jul 2003 14:07:42 +0100, Chris Morris <c.i.morris (AT) durham (DOT) ac.uk tag class="photo x250" Does anyone know what happends in IE4? I mean, do I need to hide stuff from it? |
![]() |
| Thread Tools | |
| Display Modes | |
| |