Remove Unwanted Space From A Form Element
Posted at 2:30 pm on May 7th, 2009 in Tips & Tricks Hits: 984

As i was creating the new Theme for my blog, i ran into a problem which i always face while creating a form based script. Whenever i try to create a form based element, there will somehow be a space after the element which really spoils my theme. No matter what i do, the unwanted space is still there. Finally after a lot of researching and testing i found the solution which should work with both IE and Firefox.

Simply add the following style code to your Form Element directly or via CSS and it should remove the unwanted space.

style="margin-bottom:0; margin:0; padding:0;"


This is how i used it in my search box on my current theme. This is to get a rough idea on how to put the style code.

<form method="GET" action="/index.php"
style="margin-bottom:0; margin:0; padding:0;">

Hope this saved everyone a lot of trouble. If you have further problem or clarification just post it as a comment here.


|

 
About Me

I'm ramesh from Perak, Malaysia. Blogging is my hobby hence this blog is my second home to share my life, interests and etc. One can always interact with me by using the mediums below.



Blog Menu

» Main Page
» Blogging ( 137 | rss )
» Info Tech ( 43 | rss )
» Mesh Views ( 3 | rss )
» My Mesh ( 17 | rss )
» My Poems ( 6 | rss )
» My Workshop ( 16 | rss )
» myIndians-World ( 45 | rss )
» Places & Events ( 62 | rss )
» Shoot Me ( 17 | rss )
» Tips & Tricks ( 21 | rss )
» Contact Me


Micro Mesh



Get Updates



 

page made and maintained by mesh