HTML 5 header tag [Solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
drcreazy
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 31, 2010 11:50 am

HTML 5 header tag [Solved]

Post by drcreazy »

Hi all! I have some mystical bug in page template  with tag, maybe somebody can help me :)

Template code :

Code: Select all

{process_pagedata}
<!DOCTYPE html>
<__html lang="es">

</__body onload="">
	<!-- head -->
	<table style="width:1000px;  margin:0px auto;">
		<tbody>
			<tr>
				<td id="h11"><td>
				<td id="h12"><td>
				<td id="h13"><td>
				<td id="h14"><td>
			</tr>
			<tr>
				<td id="h21"><td>
				<td id="h22"><td>
				<td id="h23">
					<div style="position:relative">
						<div id="head">

						</div>
					</div>
				<td>
				<td id="h24"><td>
			</tr>
			<tr>
				<td id="h31"><td>
				<td id="h32"><td>
				<td id="h33"><td>
				<td id="h34"><td>
			</tr>
			<tr>
				<td id="h41"><td>
				<td id="h42">
				<div style="position:relative">
				</div>
				<td>
				<td id="h43"><td>
				<td id="h44"><td>
			</tr>
		</tbody>
	</table>
	<table style="width:1000px;  margin:0px auto;">
		<tbody>
			<tr>
				<td id="h51"><td>
				<td><td>
			</tr>
		</tbody>
	</table>
	<!-- center -->
	<table style="width:1000px;  margin:0px auto;">
		<tbody>
			<tr>
				<!-- left menu -->
				<td width="250" valign="top">
					<nav id="leftmenu" style="position:relative">
					</nav>
					<div id="search">
						<div class="psp" >
						</div>
						<div class="member">
						</div>
					</div>
				</td>




				<!--  center -->
				<td valign="top">
                                     <div id="center-content">
zzz
                                              <header><h1>Header</h1></header>
xxxx

                                     </div>
				</td>
			</tr>
		</tbody>

</table>
<__body>
Result page doesn't contain and xxxx string, but if I remove tag all works perfectly.

Image

test page : http://satana-kozel.ru/test.html
Last edited by drcreazy on Thu Sep 02, 2010 5:17 pm, edited 1 time in total.
alby

Re: HTML 5 header tag

Post by alby »

I try with:

Code: Select all

{process_pagedata}<!DOCTYPE html>
<__html lang="en">
<head></head>
</__body>
  <div>
zzz
    <header><h1>Header</h1></header>
xxxx
{content}

  </div>
<__body>
</__html>
and works for me

Alby
User avatar
drcreazy
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 31, 2010 11:50 am

Re: HTML 5 header tag

Post by drcreazy »

Yes, in other template all works nice but if you try copy my template, you also get  mystical bug
alby

Re: HTML 5 header tag

Post by alby »

drcreazy wrote:
{process_pagedata}







































































                                     
zzz
                                              Header
xxxx

                                     







Have you tried with a strict html?  ;)

Alby
User avatar
drcreazy
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 31, 2010 11:50 am

Re: HTML 5 header tag

Post by drcreazy »

great thanks you, Alby

I just place header in global content tag, and it not work.

Your code is work, I think my entry code is wrong

{global_content name='header'}

Code: Select all

<head>
	<title>{title}</title>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<link rel="stylesheet" href="css/standart.css" type="text/css" />
	<link rel="stylesheet" href="css/color.css" type="text/css" />
	<link rel="stylesheet" href="css/main.css" type="text/css" />

	<!--[if IE]>
		<__script__ src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></__script><![endif]-->

	<!--[if lte IE 7]>
		<link rel="stylesheet" type="text/css" media="all" href="css/ie.css"/>
		<__script__ src="js/IE8.js" type="text/javascript"></__script><![endif]-->

	<!--[if lt IE 7]>
	<link rel="stylesheet" type="text/css" media="all" href="css/ie6.css"/><![endif]-->
	<__script__ type="text/javascript" src="js/jquery-1.4.2.min.js"></__script>
	<__script__ type="text/javascript" src="js/jquery.corner.js"></__script>
	<__script__ type="text/javascript" src="js/engine.js"></__script>

</head>

User avatar
drcreazy
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 31, 2010 11:50 am

Re: HTML 5 header tag [Solved]

Post by drcreazy »

I insert head code directly without global content block and all work as should
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: HTML 5 header tag [Solved]

Post by Dr.CSS »

  is not html tag/code...
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: HTML 5 header tag [Solved]

Post by Ziggywigged »

Dr.CSS wrote:   is not html tag/code...
It is in HTML 5.
Take a penny, leave a penny.
Post Reply

Return to “Layout and Design (CSS & HTML)”