DOCTYPE description in 1.2.8 causing errors with table size

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
noodles
Posts: 80
Joined: Tue 1. Aug 2006, 13:57

DOCTYPE description in 1.2.8 causing errors with table size

Post by noodles »

just found out that the DOCTYPE code in 1.2.8 inc_lib/default.inc.php

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
is causing some problems when you want your table in the template to be 100% in height. if you replace the DOCTYPE description in the file inc_lib/default.inc.php with a simpler version, the tablesize is correctly displayed.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi noodles,

why you do such a experiences?

Please have a look into the conf.inc.php (inderkonfigurationsdateiwoalleseingestelltwird)

Code: Select all

$phpwcms['mode_XHTML']        = 0; // Doctype: 1 = XHTML 1.0 Transitional, 0 = HTML 4.01 Transitional
$phpwcms['header_XML']        = 0; // Content Type: 1 = application/xhtml+xml, 0 = text/html
Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9905
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

when you want to set 100% of height for tables remember to set correct CSS information for html and body too - and always think about margin and padding. Values above 0px will fail. On FF you have to set min-height too.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked