Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Table inside of table


  #1  
Old Sep 27, 2012, 06:48 PM
beetle8
 
20 posts · Jul 2010
This probably isn't the right place, but this is the only 'coding' forum I'm a member of.

I've made exactly what I want with the following html and necessary css. But if I go from the 'HTML' tab to the 'visual' tab, Wordpress wrecks the code, is table inside of table a "no no?"
There's a picture of what it looks like at the bottom.
HTML Code:
<table class="askTheCoach" width="560" height="215" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" aligh="left" >
  <table cellspacing="0" cellpadding="0" class="askTheCoachbord">
    <tr>
      <th >Ask the Coach</th>
    </tr>
    <tr >
      <td class="askTheCoachmenu" id="askList" ><ul>
       <li>Ask Your Question</li>
       <li>Read the Latest Answer</li>
       <li>Read Back Issues</li></ul></td>
     </tr>
  </table>
</td>
</tr>
</table>
  #2  
Old Sep 27, 2012, 06:50 PM
juggledad's Avatar
juggledad
 
23,628 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
I've made exactly what I want with the following html and necessary css. But if I go from the 'HTML' tab to the 'visual' tab, Wordpress wrecks the code
this is one of teh reasone I never use the visual editor
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 27, 2012, 06:52 PM
beetle8
 
20 posts · Jul 2010
I don't either, but there are other folks that will be wondering around the back end of the site, so...

But is there anything wrong with the code?
  #4  
Old Sep 27, 2012, 07:21 PM
juggledad's Avatar
juggledad
 
23,628 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the code looks fine - the issue is that when you swap to the visual editor, wordpress does some things that don't work the way you would expect. (Have you noticed it adds in extra <p> where you don't have them)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 27, 2012, 07:31 PM
beetle8
 
20 posts · Jul 2010
Yeah, I try not to switch, but have noticed all sorts of screwy things,
adding tags, moving tags and so forth.

Thanks, for having a look.
  #6  
Old Sep 27, 2012, 07:50 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
WordPress shouldn't strip out table tags but if I copy the code just as it is shown in your post it "breaks" if I switch to the visual editor. Unless it is a typo you have spaces in some of your table tags. If I take out the spaces in the table tags it doesn't break.
HTML Code:
<table class="askTheCoach" width="560" height="215" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" aligh="left">
  <table cellspacing="0" cellpadding="0" class="askTheCoachbord">
    <tr>
      <th>Ask the Coach</th>
    </tr>
    <tr>
      <td class="askTheCoachmenu" id="askList" ><ul>
       <li>Ask Your Question</li>
       <li>Read the Latest Answer</li>
       <li>Read Back Issues</li></ul></td>
     </tr>
  </table>
</td>
</tr>
</table>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Sep 28, 2012, 05:50 AM
beetle8
 
20 posts · Jul 2010
Well that's interesting,

So I went back and removed the spaces, and one spelling mistake.


Now it doesn't break as much

Everything stays the same except WP strips the table height attribute cutting the picture in half.

Is there a more appropriate way to accomplish what I'm doing?
Borders, titles, linked list over a picture?
  #8  
Old Sep 28, 2012, 06:14 AM
juggledad's Avatar
juggledad
 
23,628 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is the url?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Sep 28, 2012, 06:44 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Use inline CSS for width and height like the following. Some table attributes are deprecated and you should use CSS instead.
HTML Code:
<table class="askTheCoach" style="width: 560px; height: 215px;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<table class="askTheCoachbord" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Ask the Coach</th>
</tr>
<tr>
<td id="askList" class="askTheCoachmenu">
<ul>
	<li>Ask Your Question</li>
	<li>Read the Latest Answer</li>
	<li>Read Back Issues</li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
space between table cells, perhaps nested table issue jrobie23 Center area post/pages 1 Oct 2, 2011 04:02 PM
[SOLVED] Style Inside a Table: How to change H1/2/3 padding? epsymp Atahualpa 3 Wordpress theme 2 Mar 5, 2011 07:13 PM
How to Add Zebra Effect to Single Table with WP Table-Reloaded Plugin c12281 Plugins & Atahualpa 8 Aug 1, 2010 03:53 PM
[SOLVED] Table Format for a Single Table joan Center area post/pages 4 Jul 13, 2010 09:03 AM
Big gap before my table renders shilldiy Atahualpa 3 Wordpress theme 4 Apr 14, 2009 02:40 AM


All times are GMT -6. The time now is 10:32 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.