Tech Tips

How to Stop HTML Text From Distorting With Different Resolutions

by Dan Hatter, Demand Media

Hyper Text Markup Language is a coding language developed by a scientist named Tim Berners-Lee in the early 1980s. Designed for and now used as the foundation for all websites, HTML is one of the most vital parts of the Internet as we know it. Those who know basic HTML know that there are two ways to handle the position of text inside of HTML tables. HTML text within tables can be set to expand to cover the full width of an end user's screen, which may distort the view from what the designer wants, or set to an absolute value, e.g. 400 pixels.

Step 1

Insert starting and closing table tags, "

" and "
," on either side of the desired text within your HTML code if not already done. Insert the starting tag at the beginning of the text and the closing tag at the end.

Step 2

Insert the desired width for your HTML text within the starting "

" tag. You may have to try several different settings before you come up with the proper width setting. When done, your starting tag should look like this with custom width inserted instead of the number 400: "
." No additional coding needs to be entered into the closing tag.

Step 3

Save your code and re-upload your webpage to your server. Your HTML text will no longer change or distort with different resolutions.

About the Author

Dan Hatter began writing professionally in 2008. His writing focuses on topics in computers and technology. He is pursuing a Bachelor of Science in software engineering at the University of Wisconsin-Rock County College in Janesville, Wis.

Copyright © 2012 Salon Media Group, Inc. Reproduction of material from any Salon pages without written permission is strictly prohibited.

SALON ® is registered in the U.S. Patent and Trademark Office as a trademark of Salon Media Group Inc.

Associated Press articles: Copyright © 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

TopLeft