Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #31 (permalink)  
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.:)
Reply With Quote
  #32 (permalink)  
Old August 5th, 2004, 01:13 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
Reply With Quote
  #33 (permalink)  
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.:)
Reply With Quote
  #34 (permalink)  
Old August 5th, 2004, 12:11 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:38 AM.


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