![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Oops. I found my solution. Just put the slices in a table. Easy as that! |
#3
| |||
| |||
|
|
EDIT: Oops. I found my solution. Just put the slices in a table. Easy as that! |
#4
| |||
| |||
|
|
On 2008-05-09, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrng27ttj.l5e.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: The gaps are because img is display: inline and so sits on the text baseline as if it were a glyph. Some explanation here: http://tinyurl.com/2x3t8f. You can use vertical-align: bottom as that link suggests, or, more simply, just set display: block on the images. Yes, this works nicely for where there is no inline text involved. Perhaps we can say that the vertical-align way is best for when bottom line-up of images with text is desired (for some aesthetic reason perhaps) but that display: block is neater where there is just images. I think if what you want is blocks then use display: block. A stack of slices really is a stack of blocks if you ask me (people end up putting br> between the inline images, which is already a bit bogus). Also the number of people in the world who _really_ understand how vertical-align on inline boxes is supposed to work can be counted on the fingers of one hand. I reckon it's best avoided except for obvious things like superscript and subscript. |
#5
| |||
| |||
|
|
In article <slrng28lqh.l5e.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2008-05-09, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrng27ttj.l5e.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: The gaps are because img is display: inline and so sits on the text baseline as if it were a glyph. Some explanation here: http://tinyurl.com/2x3t8f. You can use vertical-align: bottom as that link suggests, or, more simply, just set display: block on the images. [...] This thread has been interesting to me because many moons ago when I started website building, I had a commercial site and a page with a sliced set up and js (I simply would not do it this way these days) - though it is still working as it happens. I used to puzzle why it all broke when I tried to move from transitional to strict doctype, so I just left it at Transitional and forgot about it. But this reminds me to change it and display: block works nicely to allow it to be a strict doctype. Earlier on in this thread, Ben, you were saying about doctypes and quirks mode. My experience was that the trouble you were mentioning also has to do with which doctype. |
#6
| |||
| |||
|
|
Samuel Marin wrote: EDIT: Oops. I found my solution. Just put the slices in a table. Easy as that! Well not crazy about the design, very inefficient with all those image slices. Far better approach is to setup links in a UL, set background of the UL with the signpost without any signboards. Make larger enough for some text scaling. Use a plain text for your "signposts" the links can be styled as block and you can hover a "pointer" graphic to simulate your pointy signpost. Far less bandwidth and a bit more flexible.... |
#7
| |||
| |||
|
|
Jonathan N. Little a écrit : Samuel Marin wrote: EDIT: Oops. I found my solution. Just put the slices in a table. Easy as that! Well not crazy about the design, very inefficient with all those image slices. Far better approach is to setup links in a UL, set background of the UL with the signpost without any signboards. Make larger enough for some text scaling. Use a plain text for your "signposts" the links can be styled as block and you can hover a "pointer" graphic to simulate your pointy signpost. Far less bandwidth and a bit more flexible.... Hi. I've thought of your solution. Sounds interesting, especially now that I'm thinking of translations. I don't see, however, how a simple text list - if that's what ULs are - can actually fit on the background image, with absolute precision, and not be subject to any font size change - user's fonts, magnification, screen resolution, etc. Thanks for any help again :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |