Hi:
I am using CSS instead of tables for the layout of a webpage but I
don't know how to do something.
I need to place three images with the same distance among them and the
border of the page. Something like this:
---------------------------------------------
| |
| --------- --------- --------- |
| x | Image 1 | x | Image 2 | x | Image 3 | x |
| --------- --------- --------- |
| |
---------------------------------------------
Where the length x should be the same.
Using tables, an example of what I am asking:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> Test </title>
<style type="text/css">
table {
width: 100%;
border-collapse: collapse;
}
td {
width: 200px;
border-style: solid;
text-align: center;
}
td.auto {
width: auto;
}
</style>
</head>
<body>
<table>
<tr>
<td class="auto"> </td>
<td> Image 1 </td>
<td class="auto"> </td>
<td> Image 2 </td>
<td class="auto"> </td>
<td> Image 3 </td>
<td class="auto"> </td>
</tr>
<tr>
<td class="auto"> </td>
<td> Image 4 </td>
<td class="auto"> </td>
<td colspan="4"> content </td>
</tr>
</table>
</body>
</html>
Is it possible to do it using <div> instead of tables for this layout?
Thanks in advance,
--
Fernando Arbeiza