By icanko on
While creating my theme I stumbled upon a problem that can be described most clearly with this example. The following code renders like I expected in a regular HTML and also in the pre-rendered version of a node using full html and the wysiwyg I use.
<table style="border: 1px solid;">
<tr>
<td style="border: 1px solid; height:100%" rowspan="2">
<div style="background: #FAA; height: 100%;">text</div>
</td>
<td style="border: 1px solid;">
text
</td>
</tr>
<tr>
<td style="border: 1px solid;">
text
</td>
</tr>
</table>
Problem is that on drupal pages whether from my custom theme or by pressing Preview/Save, the red background div is no longer 100% of the table cell.
Where should I look to fix this?
Comments
I took the html drupal
I took the html drupal outputs and started deleting stuff. After disabling any external css files I found that the only difference between drupal's pages and my simple testing ones is the presence of
<!DOCTYPEDeleting the DOCTYPE declaration does stretch the div to 100% of the cell but I wouldn't want to be without any DOCTYPE. I tried all 7 listed at http://www.w3schools.com/tags/tag_doctype.asp but they all disabled this feature.Is there a workaround for this?
OK, thanks to these guys
OK, thanks to these guys http://stackoverflow.com/questions/172918/div-100-height-works-on-firefo...
I added a "height:100%" attribute to the table and now it is rendering like I want it while remaining true to the strict doctype.
Can somebody show me what I am doing wrong in my forums postings? They never receive replies.
Are my questions too noobish?
Am I asking in the wrong place?
Am I not waiting long enough?
Forum Responses
Icanko,
The forums of d.o [drupa.org] are hit and miss. WHat I see happening is any or all of the following:
1] people post to the groups.drupal.org page of their local group. It seems that people you know can often be more inclined to help you.
2] hit the IRC http://drupal.org/irc where people are constantly throwing around questions and answers. You may need to ask the same question again at different times of the day as the room recycles its occupants.
3] an Acqioa Subscription would provide you a forum where Acquia support staff is obligated to answer your question within about a day. At only $349/yr its a pretty good deal. Check out the prices at http://acquia.com/product-matrix but the basic subscriptions would take good care of you.
Let me know what you decide to do.
- Doug Vann [Always sign your real name to forum posts] :-)
- http://dougvann.com
- Doug Vann
- http://www.dougvann.com My Blog
- http://LinkedIn.com/in/dougvann