|
Posted by dorayme on February 29, 2008, 8:49 pm
Please log in for more thread options In article
<5494a002-9306-4452-9a58-72495e8e1b70@e23g2000prf.googlegroups.co
m>,
plenty900@yahoo.com wrote:
> Thanks for your reply. I should explain, I'm trying to
> remove all tables from a webpage.
>
> Currently I have a table like this:
>
> <table width=100%><tr>
> <td width=50>text text<td width=50> text text<td
> width="*">dflajlfadljfalfkjdaslkaasldkjflakjdfaadslkjsdlfkjadslkfjalkjfldskjlf
> jdsldkjlksdjflsdkjfldskj
> </table>
>
> In tables, TDs never wrap of course.
>
> So really my question is, how to achieve the same thing with DIVs?
>
> I assume that underlying both DIVs and TDs are the same fundmental
> mechanisms.
>
> Thanks.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> <html>
<head>
<title>Untitled Page</title>
<style type="text/css">
#container {width: 50em;}
div.short {float: left; width:50px;}
div.long {float: left;}
</style>
</head>
<body>
<div id="container">
<div class="short">text text</div>
<div class="short">text text</div>
<div>dflajlfadljfalfkjdaslkaasldkjflakjdfaadslkjsdlfkjadslkfjalkjf
ldskjlfjdsldkjlksdjflsdkjfldskj</div>
</div>
</body>
</html>
But don't do this. Instead read
<http://www.htmldog.com/guides/htmlbeginner/> and
<http://en.wikipedia.org/wiki/Semantic_Web>
--
dorayme
|