[css-d] Element a is little bigger than inner img

2010-12-06 Thread Yu-Hsuan Lai
My HTML is : --- a class=tool style=padding:0;border:0;margin:0 href=# img height=100% src=img/next_page.png alt=next page / /a --- I think that a should fill up with img, but in fact, img is smaller than a. Like this:http://ppt.cc/RqlC Can I make them the same size? -- Lai, Yu-Hsuan

Re: [css-d] Element a is little bigger than inner img

2010-12-06 Thread Chetan Crasta
Try a class=tool style=padding:0;border:0;margin:0;display:block;height:100% href=# ~Chetan On Mon, Dec 6, 2010 at 10:29 PM, Yu-Hsuan Lai rainco...@gmail.com wrote: My HTML is : --- a class=tool style=padding:0;border:0;margin:0 href=#         img height=100% src=img/next_page.png alt=next

Re: [css-d] Element a is little bigger than inner img

2010-12-06 Thread Chetan Crasta
Please provide a link to the page so that we can check the code. ~Chetan On Mon, Dec 6, 2010 at 10:51 PM, Yu-Hsuan Lai rainco...@gmail.com wrote: But... display:block will break my layout. If you consider my short link doubtful, see

Re: [css-d] Element a is little bigger than inner img

2010-12-06 Thread Chetan Crasta
Also try this: img src=img/next_page.png alt=next page / ~Chetan On Mon, Dec 6, 2010 at 10:58 PM, Chetan Crasta chetancra...@gmail.com wrote: Please provide a link to the page so that we can check the code. ~Chetan On Mon, Dec 6, 2010 at 10:51 PM, Yu-Hsuan Lai rainco...@gmail.com wrote:

Re: [css-d] Element a is little bigger than inner img

2010-12-06 Thread Shawn Lawler
Yu-Hsuan, The extra space you're describing is likely the content space reserved in a inline element for typeface descenders (the bits of letters like 'y' and 'g' that dangle). An inline image I think is by default vertically aligned to the baseline of the inline content space (which is the

Re: [css-d] Element a is little bigger than inner img

2010-12-06 Thread Chris F.A. Johnson
On Tue, 7 Dec 2010, Yu-Hsuan Lai wrote: My HTML is : --- a class=tool style=padding:0;border:0;margin:0 href=# img height=100% src=img/next_page.png alt=next page / /a --- I think that a should fill up with img, but in fact, img is smaller than a. Like this:http://ppt.cc/RqlC Can I