|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
"You codded it in dream weaver didn't you"
when i asked my web dev partner why the code was so hard to trace and hof couse the answer was yes
before fixing it Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Nanny-Online.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="text.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="950" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="780" valign="top"> <IFRAME
src="header.htm" width=780
height=125 FRAMEBORDER="0"; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
<IFRAME
src="navigation.htm" width=780
height=168 FRAMEBORDER="0"; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
<table width="780" height="410" border="0" cellpadding="0" cellspacing="10" bgcolor="#f2f2ff">
<tr valign="top">
<td width="125" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000FF">
<tr>
<td><div align="center">
<IFRAME
src="index-skyscrapper-left.php" width=120
height=600 FRAMEBORDER="0"; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
</div></td>
</tr>
</table>
</td>
<td width="240" align="center"><table id="Table_01" width="240" height="175" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <img src="images/text-area_01.gif" width="9" height="40" alt=""></td>
<td colspan="2"> <img src="images/text-area_02Chevy.gif" width="231" height="40" alt=""></td>
</tr>
<tr>
<td background="images/text-area_03.gif"> </td>
<td height="126" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="50%" align="center" valign="top"><a href="articles/anthony.htm"><img src="images/Chevy%20Chase.jpg" alt="Chevy Chase" width="100" height="100" border="0"></a></td>
<td width="50%" valign="top" class="heading-text"><p class="heading-text">CHEVY
CHASE WITH CELEBRITY CHEF ANTHONY BALLARD<br>
<span class="sub-text">Chef Antony Ballard who rubs
shoulders with the likes of Chevy Chase...</span></p>
</td>
</tr>
</table> </td>
<td background="images/text-area_05.gif"> </td>
</tr>
<tr>
<td> <img src="images/text-area_06.gif" width="9" height="9" alt=""></td>
<td> <img src="images/text-area_07.gif" width="223" height="9" alt=""></td>
<td> <img src="images/text-area_08.gif" width="8" height="9" alt=""></td>
</tr>
</table>
<br>
<table id="Table_01" width="240" height="175" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <img src="images/text-area_01.gif" width="9" height="40" alt=""></td>
<td colspan="2"> <img src="images/text-area_02HerbGarden.gif" width="231" height="40" alt=""></td>
</tr>
<tr>
<td background="images/text-area_03.gif"> </td>
<td height="126" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="50%" align="center" valign="top" class="sub-text"><a href="articles/herbgarden.htm" target="_parent"><img src="images/flower-basket.jpg" alt="Depression" width="100" height="100" border="0"></a></td>
<td width="50%" valign="top" class="heading-text"><p class="heading-text">A
KITCHEN HERB GARDEN<span class="sub-text"><br>
I’m a House Manager who likes to cook. On the
chef’s day off I will often get into the kitchen
and prepare something I saw on the Food Network...</span></p></td>
</tr>
</table></td>
<td background="images/text-area_05.gif"> </td>
</tr>
<tr>
<td> <img src="images/text-area_06.gif" width="9" height="9" alt=""></td>
<td> <img src="images/text-area_07.gif" width="223" height="9" alt=""></td>
<td> <img src="images/text-area_08.gif" width="8" height="9" alt=""></td>
</tr>
</table>
<p> </p><table width="234" height="60" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000FF">
<tr>
<td><div align="center">
<IFRAME
src="index-halfbanner-left.php" width=234
height=60 FRAMEBORDER="0"; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
</div></td>
</tr>
</table>
</td>
<td width="240"><table id="Table_01" width="240" height="175" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <img src="images/text-area_01.gif" width="9" height="40" alt=""></td>
<td colspan="2"> <img src="images/text-area_02Amber.gif" width="231" height="40" alt=""></td>
</tr>
<tr>
<td background="images/text-area_03.gif"> </td>
<td height="126" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="50%" align="center" valign="top"><a href="articles/amber.htm" target="_parent"><img src="images/Amber.jpg" alt="Amber" width="100" height="100" border="0"></a></td>
<td width="50%" valign="top" class="heading-text"><p class="heading-text">AMBER
AS MOM & CELEBRITY<br>
<span class="sub-text">Amber, the celebrated pop singer
and songwriter, who gave a spectacular performance at
Liza Minelli's wedding...</span></p></td>
</tr>
</table></td>
<td background="images/text-area_05.gif"> </td>
</tr>
<tr>
<td> <img src="images/text-area_06.gif" width="9" height="9" alt=""></td>
<td> <img src="images/text-area_07.gif" width="223" height="9" alt=""></td>
<td> <img src="images/text-area_08.gif" width="8" height="9" alt=""></td>
</tr>
</table>
<br>
<table id="Table_01" width="240" height="175" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <img src="images/text-area_01.gif" width="9" height="40" alt=""></td>
<td colspan="2"> <img src="images/text-area_02Pediatric-Denti.gif" width="231" height="40" alt=""></td>
</tr>
<tr>
<td background="images/text-area_03.gif"> </td>
<td height="126" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="50%" align="center" valign="top" class="sub-text"><a href="articles/dentistry.htm" target="_parent"><img src="images/DrDenis.jpg" alt="Pediatric Dentistry" width="100" height="100" border="0"></a><br>
<span class="sub-text">Dr. Denis M. Weintraub</span> </td>
<td width="50%" valign="top" class="heading-text"><p class="heading-text">PEDIATRIC
DENTISTRY <br>
<span class="sub-text">Going to the dentist in the past
has often been compared to being on a scary ride that
you can't get off too soon, but it's not like that anymore...</span></p></td>
</tr>
</table></td>
<td background="images/text-area_05.gif"> </td>
</tr>
<tr>
<td> <img src="images/text-area_06.gif" width="9" height="9" alt=""></td>
<td> <img src="images/text-area_07.gif" width="223" height="9" alt=""></td>
<td> <img src="images/text-area_08.gif" width="8" height="9" alt=""></td>
</tr>
</table>
<p> </p><table width="234" height="60" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000FF">
<tr>
<td><div align="center">
<IFRAME
src="index-halfbanner-right.php" width=234
height=60 FRAMEBORDER="0"; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
</div></td>
</tr>
</table> </td>
<td width="125" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#0000FF">
<tr>
<td><div align="center">
<IFRAME
src="index-skyscrapper-right.php" width=120
height=600 FRAMEBORDER="0"; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
</div></td>
</tr>
</table>
</td>
</tr>
</table><IFRAME
src="footer.htm" width=780
height=75 FRAMEBORDER=0; MARGINWIDTH=0; MARGINHEIGHT=0; SCROLLING="no"></IFRAME>
</td>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td>
<div align="center"> </div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
after php Code:
|
|
#2
|
||||
|
||||
|
RE: "You codded it in dream weaver didn't you"
Same thing happened to me. I had a guy do a layout and I ended up spending a good few hours making it readable/editable.
|
|
#3
|
|||||
|
|||||
|
RE: "You codded it in dream weaver didn't you"
even inproved it a bit
php Code:
|
|
#4
|
|||
|
|||
|
RE: "You codded it in dream weaver didn't you"
I go a step further when Im nesting tables, and I, for one think this is a good rule of thumb. Notice, the structure is clearly elegible, despite the fact that I have placed no comments in the code. You can see exactly where I am going with the layout without going cross eyed. This also comes in handy when you roll your own templating system in PHP. You can see EXACTLY whats happening, should you have flaws in your layout.
|
|
#5
|
|||
|
|||
|
RE: "You codded it in dream weaver didn't you"
*** Nevermind, Don't read this. Lol. I am wading thru a 99-post thread about the suggested editors (also on this page) ***
So what code editor do people use? There must be a more efficient method than the one I am using. LLX's example when using Dreamweaver looks alot like my code until I spend loads of time manually formatting until it looks like nawlej's example. What about template makers? I am not impressed by what I have seen, but am uneducated and inexperienced. I have been using Dreamweaver, VS Studio and notepad. Plus Word, Excel -- anything that helps. While learning I want full control on code but would like some environment that consistently formats code, allows insertion of snippets from my expanding library (like Dreamweaver). |
|
#6
|
|||
|
|||
|
RE: "You codded it in dream weaver didn't you"
i use ultra edit for my web programming
and i prefer nawleg way of indentation, coz it is more readable. Note, having a change log and following coding convention, and writing comments depending on ur org, is also very important, epecially when u involve in one of the dev team. So, if u r a way from ur company, others can take over ur work easily. |