Â
♣ ♦ ♥ â™
Guest
auto-text-wrapping... Help? Hi, I'm using HTML to create a basic webpage. I need to create a table with a FIXED column width so that the text contents in it don't text-wrap automatically when the browser width is shortened / lengthened.
I found one code that allows TEXT to do this:
<html>
<head>
<style type="text/css">
body { text-align: center; margin: 5em 0 0 0; vertical-align: middle }
#content { width: 760px; text-align: left; margin: 0 auto }
</style>
</head>
<body>
<div id="content">This is some text that will be centered on the page. It is an example that you can try out immediately. Just cut and paste this whole snippet into a file named example.htm and then view it in your browser.</div>
</body>
</html>
Now I want to apply this in a TABLE. How can I go about doing this?
Please help.
I found one code that allows TEXT to do this:
<html>
<head>
<style type="text/css">
body { text-align: center; margin: 5em 0 0 0; vertical-align: middle }
#content { width: 760px; text-align: left; margin: 0 auto }
</style>
</head>
<body>
<div id="content">This is some text that will be centered on the page. It is an example that you can try out immediately. Just cut and paste this whole snippet into a file named example.htm and then view it in your browser.</div>
</body>
</html>
Now I want to apply this in a TABLE. How can I go about doing this?
Please help.