|
Posted by Wilhelm Kutting on August 23, 2004, 11:16 am
Please log in for more thread options
Hi again
i want to replace the following layouttabel with css/xhtml:
----------------------------------
<table width="640" cellspacing="0">
<tr>
<td valign="top">My Title</td>
<td valign="top">my text </td>
</tr>
<tr>
<td><img src="spacer.gif" width="140" height="1" /></td>
<td><img src="spacer.gif" width="500" height="1" /></td>
</tr>
</table>
---------------------------------
Is there a good way to accomplish this with compatible css?
|
|
Posted by Els on August 23, 2004, 9:22 am
Please log in for more thread options
Wilhelm Kutting wrote:
> Hi again
> i want to replace the following layouttabel with css/xhtml:
> ----------------------------------
> <table width="640" cellspacing="0">
> <tr>
> <td valign="top">My Title</td>
> <td valign="top">my text </td>
> </tr>
> <tr>
> <td><img src="spacer.gif" width="140" height="1" /></td>
> <td><img src="spacer.gif" width="500" height="1" /></td>
> </tr>
> </table>
> ---------------------------------
>
> Is there a good way to accomplish this with compatible css?
Of course there is:
<div id="container">
<div id="title">My Title</div>
<div id="content">my text</div>
</div>
styles:
#container
#title
#content
Now stop trying to do table layouts with CSS, and start using
CSS layouts. It will be very different from tables, not
everything can be reproduced in exactly the same way, but
that's not necessary.
Just set it up in CSS, forget about the tables.
Oh, and try to forget you ever heard about spacer gifs.
--
Els
http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
|
|
Posted by Wilhelm Kutting on August 23, 2004, 11:29 am
Please log in for more thread options Els wrote:
> Wilhelm Kutting wrote:
>
>
>>Hi again
>>i want to replace the following layouttabel with css/xhtml:
>>----------------------------------
>><table width="640" cellspacing="0">
>> <tr>
>> <td valign="top">My Title</td>
>> <td valign="top">my text </td>
>> </tr>
>> <tr>
>> <td><img src="spacer.gif" width="140" height="1" /></td>
>> <td><img src="spacer.gif" width="500" height="1" /></td>
>> </tr>
>></table>
>>---------------------------------
>>
>>Is there a good way to accomplish this with compatible css?
>
>
> Of course there is:
> <div id="container">
> <div id="title">My Title</div>
> <div id="content">my text</div>
> </div>
>
> styles:
> #container
> #title
> #content
>
> Now stop trying to do table layouts with CSS, and start using
> CSS layouts. It will be very different from tables, not
> everything can be reproduced in exactly the same way, but
> that's not necessary.
> Just set it up in CSS, forget about the tables.
>
> Oh, and try to forget you ever heard about spacer gifs.
>
Ok,
just starting....
Watched a lot of good links to css-layout on Your Homepage.
Is there a way to do css-layouts with dreamweaver?
I only know the dreamweaver way with div.
|
|
Posted by Els on August 23, 2004, 9:51 am
Please log in for more thread options Wilhelm Kutting wrote:
> Ok,
> just starting....
> Watched a lot of good links to css-layout on Your Homepage.
> Is there a way to do css-layouts with dreamweaver?
> I only know the dreamweaver way with div.
Eh... divs are really good for flexible design and use of CSS.
I know nothing about Dreamweaver though.
You're not saying you don't know how to write HTML by hand, are
you?
--
Els
http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
|
|
Posted by Wilhelm Kutting on August 23, 2004, 12:05 pm
Please log in for more thread options Els wrote:
> Wilhelm Kutting wrote:
>
>
>>Ok,
>>just starting....
>>Watched a lot of good links to css-layout on Your Homepage.
>>Is there a way to do css-layouts with dreamweaver?
>>I only know the dreamweaver way with div.
>
>
> Eh... divs are really good for flexible design and use of CSS.
> I know nothing about Dreamweaver though.
>
> You're not saying you don't know how to write HTML by hand, are
> you?
>
>
I know how to write html by hand but you can make a big threat oout of
the discussion, if you prefer wysiwyg-editor or handcoded stuff.
Me, for myself, will stay to dreamweaver because i like it much to
layout a page visually.
The bad thing about Dreamweaver is, that they hide the css-layout thing
a little bit in the new mx-version.
|
| Similar Threads | Posted | | Replacing name with id | January 5, 2008, 11:45 pm |
| Replacing outdated tag attributes | June 15, 2006, 6:23 pm |
| About charset setting and replacing | July 14, 2006, 6:29 am |
| replacing innerHTML in xhtml | July 28, 2008, 4:49 am |
| Replacing links en masse on an ftp accessible server only | March 10, 2008, 3:35 pm |
| Why do 100% tables not go to 100%? | September 23, 2004, 10:24 am |
| tables ;-( | September 26, 2005, 11:38 pm |
| tables vc css | November 8, 2005, 1:09 am |
| Tables | January 18, 2006, 12:39 pm |
| tables | May 8, 2006, 9:55 am |
|