Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-11-2011, 04:01 PM   PM User | #1
Mike Walker
New Coder

 
Join Date: Jul 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Mike Walker is an unknown quantity at this point
How do I end this table XD

Code:
<div id="imgc">
<img src="opf/bg/2se.jpg" alt="" width="880" height="133" /></div><br />

<div id="lmenu">
<img src="lm/mfc.jpg" alt="" width="180" height="44" /><br /><br />
<table width="180"  cellspacing="0" cellpadding="0
      ">
              <tr>
                <td width="150" align="center" valign="middle  class="stats2">Red Sky Partners Fund<br />
                </td>
              </tr>
              <tr>
                <td align="center" valign="middle"  class="stats2"><div align="center">June 2011</div></td>
              </tr>
              <tr>
                <td align="center" valign="top"><a href="pdf/commentaries/06-11 Monthly Commentary.pdf" target="_new"><img src="imgs/mn0910.gif" alt="" width="85" height="109" border="0" align="middle" /></a></td>            
        </tr>
          </table><br />
      <img src="lm/ARCH.jpg" alt="" width="180" height="30" /><br /><br />
<table width="180"  cellspacing="0" cellpadding="0">
              <tr class="stats1">
                <td height="20" colspan="2" align="center" valign="top" class="stats2">Red Sky Partners Fund</td>
              </tr>
              <tr class="stats1">
                <td class="stats2">2011</td>
                <td class="stats2">2010</td>
                
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p class="stats1"><a href="pdf/commentaries/05-11 Monthly Commentary.pdf" target="_new">May</a><br />
                    <a href="pdf/commentaries/04-11 Monthly Commentary.pdf" target="_new"> April </a><br />
                    <a href="pdf/commentaries/03-11 Monthly Commentary.pdf" target="_new"> March<br />
                    </a><a href="pdf/commentaries/02-11 Monthly Commentary.pdf" target="_new">February </a><a href="pdf/commentaries/09-10 Monthly Commentary.pdf" target="_new"><br />
                </a><a href="pdf/commentaries/1-11 Monthly Commentary.pdf" target="_new">January</a></p></td>
                <td width="100" valign="top"  class="stats1"><span class="stats1"><a href="pdf/commentaries/12-10 Monthly Commentary.pdf" target="_new">                  December</a><a href="pdf/commentaries/10-10 Monthly Commentary.pdf" target="_new" class="stats1"><br />
                    </a><span class="stats1">
                    <a href="pdf/commentaries/11-10 Monthly Commentary.pdf" target="_new">November<br />
                    </a>
                    <a href="pdf/commentaries/10-10 Monthly Commentary.pdf" target="_new" class="stats1">October</a></span><br />
                <span class="stats1"><a href="pdf/commentaries/09-10 Monthly Commentary.pdf" target="_new" class="stats1">September</a></span></span></td>
              </tr>
          </table>
</div>

<div id="content">
<div style="text-align: center;">
          Red Sky is committed to providing you with information that you will find helpful and informative. Below you can find manager commentary, our monthly fund commentary and links to interesting news articles.
          <br /><br />
          <img src="imgs/line2.jpg" alt="" width="505" height="5" /><br /><br />
          
          <div class="stats2red" align="center">News</div><br />
       <u class="time">17/07/2011</u> - Red Sky is pleased to annouce the launch of the Red Sky Aggressive 150 Fund LP. Please click <a href="http://www.newswire.ca/en/releases/archive/July2011/11/c4684.html" target="_new">here</a> to view the full press release.<br /><br />
       
        <u class="time">30/3/2011</u> - Red Sky annouces the closing of the Series S units. Please click <a href="http://www.newswire.ca/en/releases/archive/March2011/30/c7908.html" target="_new">here</a> to view the full press release.<br /><br />
        <u class="time">17/1/2011</u> - Red Sky is pleased to announce that our website can now be accessed from the  main web page of CI Financial  at <a href="http://www.ci.com" target="_new">www.ci.com</a>.<br /><br />
        
        <u class="time">6/1/2011</u> - Red Sky is pleased to announce  the addition of Brian Huen as a Managing Partner. Please click <a href="http://newswire.ca/en/releases/archive/January2011/06/c8997.html" target="_new">here</a> to view the full press release.<br />
          <br />
          <img src="imgs/line2.jpg" alt="" width="505" height="5" /><br />
          <div class="stats2red" align="center"><br />
            Interesting Articles</div><p></p>
        <em>Coming Soon...<br />
          <br />
        </em><img src="imgs/line2.jpg" alt="" width="505" height="5" /><br />
<br />
For legal reasons, the featured PDFs have their printing and copy features disabled. If you would like a version with these features enabled, please contact us at <a href="mailto:info@redskycm.com">info@redskycm.com.</a>
  <p></p>
</div style>
</div>

</div>
<br />

<div id="foot">
  <a href="index.html"><img src="opf/tb/2/ho.png" width="69" height="21" alt="Home" /></a><a href="cu.html"><img src="opf/tb/2/co.png" width="133" height="21" alt="Contact Us" /></a><a href="le.html"><img src="opf/tb/2/le.png" width="80" height="21" alt="Legal" /></a><a href="cr.html"><img src="opf/tb/2/cr.png" width="78" height="21" alt="Credits" /></a></div>

</div>

</body>

</html>
Hey! So I took this table in from my co worker's website since I'm updating it, but according to my DW color coding it's an open table all the way to the end (which I included)

I've tried to close the table tag but I can't seem to manage without it acting awkwardly or misplacing things on the page... is there somewhere in specific I'm designed to close the table?

I'm fairly experienced in HTML, i just never ever use tables...
Mike Walker is offline   Reply With Quote
Old 08-11-2011, 04:27 PM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Maybe its not the table thats the culprit?

Have you checked your code with the validator? You have a few errors.
__________________
Teed
teedoff is offline   Reply With Quote
Old 08-11-2011, 04:49 PM   PM User | #3
Mike Walker
New Coder

 
Join Date: Jul 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Mike Walker is an unknown quantity at this point
http://validator.w3.org/check?uri=ht...alidator%2F1.2

No sir, I only have 3 validation errors, all caused by the free hosting site I use. (I believe)

EDIT

The problem went away. WC3 Validation didn't even catch the problem either =_= it dealt with some kind of broken pdf link

Last edited by Mike Walker; 08-11-2011 at 05:01 PM..
Mike Walker is offline   Reply With Quote
Old 08-11-2011, 04:57 PM   PM User | #4
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by Mike Walker View Post
http://validator.w3.org/check?uri=ht...Inline&group=0

No sir, there's only a few. The bottom 3 are created by my hosting service, and the 4 I have are all simply headers within a table, which is considered an error but I don't know/care why, since it shows up on IE/Chrome/FF/Android&iOS browsers, so, I don't really mind if its invalid if it works on every single browser practically
Look at those errors again. In particular, the ones about the attributes containing "=" signs......


Quote:
I don't really mind if its invalid if it works on every single browser practically
and you should want valid code..for this very reason in itself....debugging issues.
__________________
Teed
teedoff is offline   Reply With Quote
Old 08-11-2011, 05:15 PM   PM User | #5
Mike Walker
New Coder

 
Join Date: Jul 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Mike Walker is an unknown quantity at this point
2 Errors. *swish*

Just to ask, the errors have the word "hosting" in it- I'm guessing this means that it has to do with the host I'm using?

http://validator.w3.org/check?uri=ht...alidator%2F1.2

Use that, I changed the filename from T3 to t3 XD
Mike Walker is offline   Reply With Quote
Old 08-11-2011, 05:16 PM   PM User | #6
Mooseman
Regular Coder

 
Mooseman's Avatar
 
Join Date: Sep 2010
Posts: 118
Thanks: 7
Thanked 3 Times in 3 Posts
Mooseman is an unknown quantity at this point
Valid code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org">
<title></title>

<style type="text/css">
 div.c3 {text-align: center;}
 span.c2 {text-decoration: underline}
 div.c1 {text-align: center}
</style>
</head>
<body>
<div id="imgc"><img src="opf/bg/2se.jpg" alt="" width="880" height="133"></div>
<br>
<div id="lmenu"><img src="lm/mfc.jpg" alt="" width="180" height="44"><br>
<br>
<table width="180" cellspacing="0" cellpadding="0">
<tr>
<td width="150" align="center" valign="middle class=">Red Sky Partners Fund<br></td>
</tr>
<tr>
<td align="center" valign="middle" class="stats2">
<div class="c1">June 2011</div>
</td>
</tr>
<tr>
<td align="center" valign="top"><a href="pdf/commentaries/06-11%20Monthly%20Commentary.pdf" rel="nofollow" target="_new"><img src="imgs/mn0910.gif" alt="" width="85" height="109" border="0" align="middle"></a></td>
</tr>
</table>
<br>
<img src="lm/ARCH.jpg" alt="" width="180" height="30"><br>
<br>
<table width="180" cellspacing="0" cellpadding="0">
<tr class="stats1">
<td height="20" colspan="2" align="center" valign="top" class="stats2">Red Sky Partners Fund</td>
</tr>
<tr class="stats1">
<td class="stats2">2011</td>
<td class="stats2">2010</td>
</tr>
<tr>
<td align="left" valign="top">
<p class="stats1"><a href="pdf/commentaries/05-11%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">May</a><br>
<a href="pdf/commentaries/04-11%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">April</a><br>
<a href="pdf/commentaries/03-11%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">March<br></a> <a href="pdf/commentaries/02-11%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">February</a> <a href="pdf/commentaries/09-10%20Monthly%20Commentary.pdf" rel="nofollow" target="_new"><br></a> <a href="pdf/commentaries/1-11%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">January</a></p>
</td>
<td width="100" valign="top" class="stats1"><span class="stats1"><a href="pdf/commentaries/12-10%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">December</a><a href="pdf/commentaries/10-10%20Monthly%20Commentary.pdf" rel="nofollow" target="_new" class="stats1"><br></a> <span class="stats1"><a href="pdf/commentaries/11-10%20Monthly%20Commentary.pdf" rel="nofollow" target="_new">November<br></a> <a href="pdf/commentaries/10-10%20Monthly%20Commentary.pdf" rel="nofollow" target="_new" class="stats1">October</a></span><br>
<span class="stats1"><a href="pdf/commentaries/09-10%20Monthly%20Commentary.pdf" rel="nofollow" target="_new" class="stats1">September</a></span></span></td>
</tr>
</table>
</div>
<div class="c3" id="content">Red Sky is committed to providing you with information that you will find helpful and informative. Below you can find manager commentary, our monthly fund commentary and links to interesting news articles.<br>
<br>
<img src="imgs/line2.jpg" alt="" width="505" height="5"><br>
<br>
<div class="stats2red c1">News</div>
<br>
<span class="time c2">17/07/2011</span> - Red Sky is pleased to annouce the launch of the Red Sky Aggressive 150 Fund LP. Please click <a href="http://www.newswire.ca/en/releases/archive/July2011/11/c4684.html" rel="nofollow" target="_new">here</a> to view the full press release.<br>
<br>
<span class="time c2">30/3/2011</span> - Red Sky annouces the closing of the Series S units. Please click <a href="http://www.newswire.ca/en/releases/archive/March2011/30/c7908.html" rel="nofollow" target="_new">here</a> to view the full press release.<br>
<br>
<span class="time c2">17/1/2011</span> - Red Sky is pleased to announce that our website can now be accessed from the main web page of CI Financial at <a href="http://www.ci.com" rel="nofollow" target="_new">www.ci.com</a>.<br>
<br>
<span class="time c2">6/1/2011</span> - Red Sky is pleased to announce the addition of Brian Huen as a Managing Partner. Please click <a href="http://newswire.ca/en/releases/archive/January2011/06/c8997.html" rel="nofollow" target="_new">here</a> to view the full press release.<br>
<br>
<img src="imgs/line2.jpg" alt="" width="505" height="5"><br>
<div class="stats2red c1"><br>
Interesting Articles</div>
<em>Coming Soon...<br>
<br></em> <img src="imgs/line2.jpg" alt="" width="505" height="5"><br>
<br>
For legal reasons, the featured PDFs have their printing and copy features disabled. If you would like a version with these features enabled, please contact us at <a href="mailto:info@redskycm.com">info@redskycm.com.</a></div>
<br>
<div id="foot"><a href="index.html"><img src="opf/tb/2/ho.png" width="69" height="21" alt="Home"></a><a href="cu.html"><img src="opf/tb/2/co.png" width="133" height="21" alt="Contact Us"></a><a href="le.html"><img src="opf/tb/2/le.png" width="80" height="21" alt="Legal"></a><a href="cr.html"><img src="opf/tb/2/cr.png" width="78" height="21" alt="Credits"></a></div>
</body>
</html>
__________________
Ask me anything about CSS! Learning PHP.
Mooseman is offline   Reply With Quote
Old 08-11-2011, 05:22 PM   PM User | #7
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Ok so now, the validator would show you if you didn't close a tag, <table>, <tr> or any other tag. Since it doesnt suggest that, what is the issue you seem to be having?

You cant rely on DW to suggest your page is working properly. If the validator oks your code, and browser testing seems to render your pages, then its correct right?

hmm ok I do see something is not right, just havent found it yet...lol

nevermind, I had your old code with the missing quote marks still in DW. It seems to look fine now in my DW...code color wise.
__________________
Teed

Last edited by teedoff; 08-11-2011 at 05:27 PM..
teedoff is offline   Reply With Quote
Old 08-11-2011, 05:39 PM   PM User | #8
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
Quote:
Originally Posted by Mike Walker View Post
2 Errors. *swish*

Just to ask, the errors have the word "hosting" in it- I'm guessing this means that it has to do with the host I'm using?

http://validator.w3.org/check?uri=ht...alidator%2F1.2

Use that, I changed the filename from T3 to t3 XD
is this issue resolved??? as to the quoted section... Yes, I believe that it is due to your hosting company (if they are the ones inserting that code). If you are just required to have that code there, then it is due to your misplacement of the code. To the best of my knowledge the <noscript> tag set must be within the <body> tag set, and the <script> tag set (at least as it relates to javascript) must be within the <html> tag set
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 08-11-2011, 07:04 PM   PM User | #9
resdog
Regular Coder

 
Join Date: Aug 2011
Location: U.S.A.
Posts: 233
Thanks: 2
Thanked 48 Times in 48 Posts
resdog is on a distinguished road
the problem with your code is that you didn't close your valign correctly (around line 16) :

Code:
<img src="lm/mfc.jpg" alt="" width="180" height="44" /><br /><br />
<table width="180"  cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" align="center" valign="middle  class="stats2">Red Sky Partners Fund<br />
                </td>
              </tr>
              <tr>
If you notice, you have valign="middle class="stats2">

because of this, all of your quotes are one off, which your browser will render correctly, but dreamweaver won't because it's looking for the closing quotes. close the valign in that line and things should look better. Since everyone else was addressing the validation, I didn't even check that.
resdog is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:50 PM.


Advertisement
Log in to turn off these ads.