Naveen Bhaskar wrote:
Hi,
Which is the right method to position a logo in the header.
with
* position :relative;top:10px; left:10px;*
or
*margin:10px 0 0 10px;*
**
pls rell me the pros and cons
**
Depends on how you want the logo to interact with the rest of the
header. Relative positioning moves the content of the element, but as
far as the rest of the header is concerned it has not moved. Using
margins, the entire logo moves, jostling any element that's beside it.
All positioning methods have their uses...
Cordially,
David
--
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************