Results 1 to 12 of 12
Related
-
If statement inside <td> Forum: CGI Perl Forum
Replies: 1 -
Scrool bar inside table Forum: HTML Forum
Replies: 0 -
Else If inside While Wend Forum: ASP Forum
Replies: 9 -
Error in IE6 with 100% width Table inside a div Forum: CSS Forum
Replies: 2 -
html scroll page inside a table? Forum: HTML Forum
Replies: 2
-
04-29-2009, 02:19 AM #1
Why some <td> don't show inside a table?
I have set a typical html table with 4 td's, each one containing different information. I tested it at an article page within my site and it's working fine, but when I added the code to the home page only the first <td> shows up, the other 3 are hidden! ?
I couldn't figure out the cause. Any help is greatly appreciated.
Perhaps its a conflict between the main css file, maybe I need to exclude css style in that table, how do I do that?
I paste the code
Code:<DIV class=pnlBlockTitle id=ctl00_contentMasterPage_ucRelatedProducts_pnlRelatedProductsTitle> <H2>HOT SELLERS...</H2></DIV> <DIV> <DIV class=pnlPageCustomContent> <TABLE style="WIDTH: 533px" cellSpacing=5 cellPadding=9 align=center bgColor=#ffffff border=1 <TBODY> <TBODY> <TR> <TD style="WIDTH: 133px"> <P><A href="/-P1560.aspx"><IMG alt='Kaco Arlington, 30"-36" Vanity w/Top' src="/ImgDisplay.aspx?img=5300 2400.jpg&h=75&w=75"></A></P> <DIV><A href="/-P1560.aspx">Kaco Arlington, 30"-36" Vanity w/Top</A></DIV> <DIV class=priceBold>$0</DIV></TD> <TD style="WIDTH: 133px"> <P><A href="/-P300.aspx"><IMG alt="Pacific Silvercloth Silver Drawer Insert - 2 sizes" src="/ImgDisplay.aspx?img=pacific_image.jpg&h=75&w=75"></A></P> <DIV><A href="/-P300.aspx">Pacific Silvercloth Silver Drawer Insert - 2 sizes</A></DIV> <DIV class=priceBold>$0</DIV></TD> <TD style="WIDTH: 133px"> <P><A href="/-P299.aspx"><IMG alt='Sliding Valet Rod 12" by October' src="/ImgDisplay.aspx?img=valet_rods-new.jpg&h=75&w=75"></A></P> <DIV><A href="/-P299.aspx">Sliding Valet Rod 12" by October</A></DIV> <DIV class=priceBold>$0</DIV></TD> <TD style="WIDTH: 133px"> <P><A href="/-P6271.aspx"><IMG alt="Herbeau Royale 2-Hole Kitchen Mixer - 3022" src="/ImgDisplay.aspx?img=3022hrb.jpg&h=75&w=75"></A></P> <DIV><A href="/-P6271.aspx">Herbeau Royale 2-Hole Kitchen Mixer - 3022</A></DIV> <DIV class=priceBold>$0</DIV></TD></TR></TBODY></TABLE></DIV></DIV>
-
04-29-2009, 06:00 AM #2bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Re: Why some <td> don't show inside a table?
Hi there shvemel,
and a warm welcome to these forums.
Your page has 581 Errors and 50 warnings.
I would suggest that you attend to these first.
If this does not correct your problem then let us know.
-
04-29-2009, 09:48 AM #3
Re: Why some <td> don't show inside a table?
Thanks coot.
Validation is not the case at this point.
That don’t mean much in the real world. (Dan Thies)
I wonder why Amazon has 1600+ errors
-
04-29-2009, 10:24 AM #4
Re: Why some <td> don't show inside a table?
First things first. Coot pointed you to the validation because 9 times out of 10, fixing validation errors will correct issues you are having with the page. It would be worth looking into in any case simply to make sure there are not any glaring errors.
But to answer your question, the problem is with a CSS conflict. Specifically, the width declared for:
.text-block p
Change that width (or just get rid of the width altogether as it did not appear to mess up your site at all), and you will be fine.
-
04-29-2009, 11:53 AM #5bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Re: Why some <td> don't show inside a table?
Hi there shvemel,
Validation is not the case at this point.
"Regardless of blame or origin, if the mark-up is invalid, then you may be forcing the browser
to "guess" what your intentions are. While the standards are pretty specific on what user agents
should do in specific mark-up circumstances, when they have to guess and make assumptions due to
invalid mark-up, then there is no guarantee that any two will make the same guesses/assumptions.
In general it has been my experience that if the HTML/CSS is error-free with a valid, fully
qualified DOCTYPE declaration as the first line (so that IE is not in "tweaks mode"), 99.99% of
browser differences disappear (at least when using reasonably current browsers).
Unfortunately web authors have been spoiled by web browsers that let them get away with invalid
mark-up. If you were to write a computer program with syntax errors, it would most likely not
run/compile at all. Browsers instead just do the best they can."
-
04-29-2009, 12:21 PM #6
Re: Why some <td> don't show inside a table?
The text-block element are declared here:
Code:/*--text-block--*/ .text-block { clear:both; overflow:hidden; width:534px; margin:10px 0 0 95px; padding:0 0 20px; } .text-block .img-holder { clear:both; overflow:hidden; margin:0; width:100%; } .text-block .img-holder img { display:block; margin:0; border:none; } .text-block .banner-holder { clear:both; overflow:hidden; margin:0 0 0 7px; width:527px; } .text-block .banner-holder img { display:block; margin:0; border:none; } .text-block p { clear:both; overflow:hidden; margin:10px 0 0 7px; color:#a52a2a; width:517px; text-align:justify; } .side-panel { clear:both; overflow:hidden; margin:1px -200px 0 325px; padding:0 0 2px; width:100%; text-align:justify; vertical-align:right; } .text-block p a { color:#a52a2a; text-decoration:underline; } .text-block p a:hover {color:#f00;} .text-block p a span {color:#a52a2a;}
Last edited by shvemel; 04-29-2009 at 12:31 PM. Reason: added line
-
04-29-2009, 01:07 PM #7
Re: Why some <td> don't show inside a table?
-
04-30-2009, 01:59 AM #8
Re: Why some <td> don't show inside a table?
jthayne!
Thanks!
You did it, I just deleted the width value and its now showing.
-
04-30-2009, 09:37 AM #9
Re: Why some <td> don't show inside a table?
Glad to hear it!
-
04-30-2009, 10:35 AM #10
Re: Why some <td> don't show inside a table?
At the end of this huddle.. I noticed another slim problem.
The menu box at the left does not show the "red-box-bottom" which I used to get and all other boxes are showing well for the top and bottom.
I assume it's a <div> or </div> missing or extra.
Tried several things didnt work.
I appreciate your advice
-
04-30-2009, 10:48 AM #11bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Re: Why some <td> don't show inside a table?
Hi there shvemel,
Tried several things didn't work.
We are always willing to help you with this task, if you experience problems.
-
04-30-2009, 11:51 AM #12
Re: Why some <td> don't show inside a table?
Coot is right. You really need to look through the errors received when validating. The primary one I see is that every instance where you declare a color using a hex code (i.e. #FFFFFF), you do not enclose it in quotes. It needs to be in quotes EVERY time.
I am not able to look at the code further at the moment, but try the change I mentioned. Also, look through the rest of the errors, and see if there is anything else that you think could be the issue.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum