Tuesday 15 January 2013

How to remove white spaces from texts?

As a professional and experienced web design company, it is essential to know what these white spaces effect on a web page and how to remove them permanently. Trying to be pixel perfect on the Web is like begging to be frustrated. I try to not worry so much about a pixel here or there, but sometimes you just have to get complete control to make things look right.

These white spaces are automatically created by the browsers on which a website runs or opens. Until recently I had never paid any special attention to the exact amount of whitespace some browsers create around text area and input [type="text"] elements, but then I started implementing a design that required there to be exactly no whitespace around them. And there is a blog on web development company India I found a statement that browser behavior differs accordingly and to fix it we have to apply some codes to remove.
Browsers that create these white spaces automatically
IE does not seem to add any whitespace at all around text fields. Opera adds none around text areas but a little bit around text inputs on Mac OS X but not on Windows. Firefox adds a bit of vertical whitespace around text areas but not around text inputs. It’s a bit of a mess, as you can see if you open the Removing whitespace around text fields demo page in a few different browsers.
Fortunately there is a simple fix for this:
input,
textarea {
    margin:0;
    vertical-align:bottom;
}
If you want to affect only text inputs you could use input [type="text"] instead of input. Other values for vertical-align, like top or middle, will also work.

16 comments:

  1. Envisionmindz Technologies Company offers custom website design & web development services. Contact us for a free SEO Analysis. I have received excellent service from envisionmindz at BusinessPro Designs regarding to setup of our website.

    ReplyDelete
  2. This is one of the Important post.By read your post I got a good knowledge about this type of helpful details in my work project.Pretty information.

    ReplyDelete
  3. Nice post dear please continue writing blog about Web Development India

    ReplyDelete
  4. WordPress Programmers offer SEO friendly websites so that it can appear in all leading search engines. There are many interesting features that allow you update your site with utmost ease. When it comes to plugin customization and installation, WordPress Programmers is a name you can rely upon. In a nutshell, we are just the right place for all your WordPress designing and development related needs.Read More Hire WordPress Programmers .

    ReplyDelete
  5. Nice to know the information. Providing this type of information is great thing. Bangalore Website Developers

    ReplyDelete
  6. This is a amazing blog and providing the information regarding remove the white space from text.
    Outsource Web Developer

    ReplyDelete
  7. Nice article. This is so much more than I needed! But will all come in use thanks!

    wordpress development

    ReplyDelete
  8. Whit spaces are not good for website.Because it create less value on website structure while users seeing the websites.
    Web Design Companies | Web Designing Company

    ReplyDelete
  9. Your professional designers should always offer you the websites with basic designs but the ones which are impactful.
    Web Design Company India | Web Design Companies

    ReplyDelete
  10. Good post ! Thanks for sharing this post with us. !!
    Adodis | Adodis Review | Adodis Technologies

    ReplyDelete

  11. Thanks for sharing up–to-date on this subject! I find it is very informative and very well written one! Keep up on this quality!

    outsource yii application development

    ReplyDelete
  12. Really its very useful information that you have shared and looks great post.Thanks for sharing the information with us.
    Website Developers in Bangalore | Web Design Agency in Bangalore

    ReplyDelete
  13. Very nice blogs!!! I am learned lot of information from this blog...Sharing for wonderful news about the web design and web development. . I am very interested to see your upcoming news for Web Development so please keep writing. I really appreciate your news. Well Done.
    Engineering Colleges, ECE Engineering Colleges in Chennai

    ReplyDelete

ABOUT GRIPS

New Delhi, India
Grips is a professional IT development company who deliver high quality services and products at affordable cost, high impact solutions to its onshore-offshore clients. We understand our client’s needs and nurture passion and provide latest technology the right insight which supports to help businesses transform by making functions smarter, faster and better with particular expertise in web development services, software development services, Internet Marketing and outsourcing services