|
Printed
from BasicTips.com,
FREE helpful articles
and tips for Webmasters and Business Owners
Copyright © 1994-2006
by BasicTips.com, a division of BasicTemplates.BIZ
All rights reserved. Republication in whole or in part in any form is not permitted.
Sponsored by BasicTemplates.BIZ
Website
Templates with External CSS and
Removable Graphics
http://www.BasicTemplates.biz
Co-Sponsored by Effective-Website-Secrets.com
Teaching webmasters effective web development and marketing techniques
via free podcasts.
http://www.Effective-Website-Secrets.com
Category: CSS
Removing Space Around Forms
By BasicTemplates with External CSS
The easiest and most effective way to eliminate unwanted text around your web forms is to use a snippet of CSS code. Below we show you the inline CSS code and the external (recommended) CSS method. If you are not familiar with the different methods of CSS and how or when to use them, be sure to read our article, "External, Internal or Inline? Which Method is Best?"
Inline CSS: <form style="margin-top: 0; margin-bottom: 0;">
External CSS (place code within your external style sheet): .form { margin-top: 0; margin-bottom: 0; }
Both methods simply reduce the form margins to 0.
|