Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html > Re: Image stack...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 9914 of 10681
Post > Topic >>

Re: Image stacking

by Ben C <spamspam@[EMAIL PROTECTED] > May 9, 2008 at 02:05 AM

On 2008-05-08, Samuel Marin <samuelmarin@[EMAIL PROTECTED]
> wrote:
> EDIT:
>
> Oops. I found my solution. Just put the slices in a table. Easy as that!

That only works in quirks mode.

If you put the strict mode doctype at the top of each of your HTML pages

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

which is recommended for all new pages, you get the gaps between the
slices again.

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.

> Sam.
>
> Hi.
>
> In an attempt to make a nice menu, I sliced horizontally a picture
> containing the different links. I get 6 pictures, each one a part of the
> full image.
> I used javascripting - not my own code - to show an altered image on the
> MouseOver event.
>
> My problem is: if I just stack the pictures, they will fit nicely and
> recreate the full picture, but when I associate an anchor to each of the
> 6 images, they are separated by a couple of pixel lines, thus breaking
> my full picture.
>
> Does anyone know an easy workaround? Thanks.
>
>
> Sam.
 




 10 Posts in Topic:
Image stacking
Samuel Marin <samuelma  2008-05-09 01:59:44 
Re: Image stacking
Travis Newbury <Travis  2008-05-08 17:55:57 
Re: Image stacking
Ben C <spamspam@[EMAIL  2008-05-09 02:05:24 
Re: Image stacking
dorayme <doraymeRidThi  2008-05-09 18:05:23 
Re: Image stacking
Ben C <spamspam@[EMAIL  2008-05-09 08:53:22 
Re: Image stacking
dorayme <doraymeRidThi  2008-05-10 11:09:15 
Re: Image stacking
Ben C <spamspam@[EMAIL  2008-05-10 14:39:48 
Re: Image stacking
"Jonathan N. Little&  2008-05-09 11:51:02 
Re: Image stacking
Samuel Marin <samuelma  2008-05-10 21:50:19 
Re: Image stacking
"Jonathan N. Little&  2008-05-10 17:56:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Oct 16 0:47:16 CDT 2008.