Reply to Re: one more question

Your name:

Reply:


Posted by Mark Parnell on 01/27/06 06:16

Deciding to do something for the good of humanity, John Salerno
<johnjsal@NOSPAMgmail.com> declared in alt.html:

> yet the text in the top banner does not have any padding.

It does - on the bottom at least. You can see this if you add a border
to it.

> Does a <span>
> not have padding?

Yes it does, but because <span> is inline, it flows differently to a
block-level element (e.g. <div>), which is presumably what you are
expecting. 2 solutions - add display: block to div#banner span, or put
the padding on div#banner instead. Second option is better, because then
you can get rid of the span from the HTML.

> Is there something in the stylesheet I'm
> missing that causes it to indent?

Impossible to say without seeing one of these other pages that exhibit
such behaviour. It could be that the image is in an element that
browsers have default margin/padding on (e.g. <p>, <div>).

--
Mark Parnell
=====================================================
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация