Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2004, 11:15 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Imar,I think I found your answer...
in dreamweaver I have two files including this code you told(they are exactly the same)
----
<style>
.dr {
    height: 100%;
    width: 100%;
    cursor: hand;
    border: 1px dotted #999999;
}
</style>
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
  <td ><a class="dr" href="#">123</a></td>
</tr>
<tr>
  <td><a class="dr" href="#">12345678901234567890</a></td>
</tr>
</table>
----
one of them has whitespace problem and another doesn't have...
in first one it uses
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">(just like your example)
but in second one it uses
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">(just like my example)
because of it,in my browser it works fine but in your browser it has some problem
so the problem was due to using XHTML 1.0 you should use HTML 4.01 instead.


--------------------------------------------
Mehdi.:)
 
Old August 5th, 2004, 01:13 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, I would recommend my initial solution even more. XHTML is the "proper" way to do it. XHTML is the new (re)formulation of HTML in XML and is the markup language of today and the future. It's often necessary to use the XHTML declaration to tell browsers you're feeding them proper and well formed XHTML, and they should act accordingly.

Using old doc type declarations just to make a link work is not acceptable for me, as it would also mean other issues with the page (for example, a whole different box-model interpretation in Internet Explorer). It feels like a nasty work around, while there are better, cleaner and less problematic alternatives....

Imar
 
Old August 5th, 2004, 02:47 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Don't call it nasty work please!
Hope in next versions of XHTML such problems could be solved...
Cheers!



--------------------------------------------
Mehdi.:)
 
Old August 5th, 2004, 12:11 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I am not sure if there *is* something to fix in the next version.

Resizing the box of an <a> tag just to fill up its container <td> tag so the entire surface become clickable isn't something you'd want to do. If you want the container to be clickable, simply use JavaScript to make it so. Apply it to the <td> rather than to the content inside the <td>. IMO, this is not a flaw in the XHTML specs, but rather in the implementation you have chosen.

Of course there are often many ways to solve the same problem. So, if your solution works, by all means use it.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to associate table rows with hyperlink?[READ] user0b PHP How-To 1 July 30th, 2008 04:20 AM
How to create a Hyperlink based on Cell Contents chatguy Excel VBA 4 October 15th, 2007 09:43 PM
layers in table cell dearmisskat HTML Code Clinic 12 March 10th, 2007 04:46 AM
reading from a table cell? Atomsk Access VBA 2 September 28th, 2006 07:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.