Jump to content


Gottung


  • You cannot reply to this topic
3 replies to this topic

#1 nlsmith

    Etomite Forum Newbie

  • Member
  • 6 posts

Posted 29 January 2005 - 08:13 PM

The Gottung template is a very simple Etomite template I am using for a site now in development.

Notes:

- Valid XHTML 1.1 and CSS.
- The header is hidden to use a background image instead. To reveal the text, remove the line
text-indent: -9999px;
from the "#header h1" section of gottung.css.
- The obligatory link to the Etomite site is replicated in the footer section. In my site I removed it from the stock index.php for style reasons.
- Images go in assets/images/gottung and gottung.css goes in assets/site.
- Any suggestions for improvement would be welcome.

To see this template in action go to http://gottung.nlsmith.com. Feel free to copy any decoration graphics there. The page is not finished and undergoing development, but I think I've settled on the template. Enjoy.

The template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>[(site_name)] &raquo; [*pagetitle*]</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	[[GetKeywords]]
        <style type="text/css">
             @import url('assets/site/gottung.css');
        </style>
</head>	

<body>
<div id="container">

<div id="header">
<h1><a href="[~[(site_start)]~]">[(site_name)]</a></h1>
</div>

<div id="menu">
<p class="bgImage">
<img src="assets/images/gottung/menuborder-top.gif" alt="---" /></p>
[[ListMenu?LM_node=0]]
<p class="bgImage">
<img src="assets/images/gottung/menuborder-bottom.gif" alt="---" /></p>
</div>

<div id="content">
<h1>[*longtitle*]</h1>
[*content*]
</div>

<div id="footer">
<p>&copy; 2005 
<a href="http://www.nlsmith.com" onclick="window.open(this.href,'_blank');return false;">NL Smith</a><br />
Content managed by the <a href="http://etomite.com" onclick="window.open(this.href,'_blank');return false;">Etomite Content
Management System</a></p>
</div>

</div>
</body>
</html>

gottung.css:
body {
	background-color: #CCCC99;
}

a, a:visited {
	color: #333300;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	text-decoration: underline;
	font-weight: bold;
}

#container {
	color: #666633;
	font: 14px serif;
	text-transform: none;
	margin: 10px auto;
    padding: 5px;
	margin-bottom: 50px;
}

#header {
	margin-left: auto;
	margin-right: auto;
	width: 50em;
}

#header h1 {
	text-align: center;
	text-indent: -9999px;
	width: 700px;
	height: 150px;
	background: url(../images/gottung/header.gif);
	background-position: center;
	margin: 0;
	padding: 0;
}
	
#content {
	width: 78%;
	float: right;
	margin-top: 10px;
	margin-bottom: 10px;
}

#content h1, h2 {
        text-decoration: none;
        letter-spacing: 2px;
        border-bottom: solid 1px #666633;
	font-variant: small-caps;
}

#menu {
	float: left;
	text-align: left;
	padding: 5px;
	margin-top: 10px;
	margin-bottom: 10px;
	border-right: 1px solid #666633;
	width: 18%;
	color: #666633;
	
}

#menu .bgImage {
	margin-top:0px;
	margin-bottom:0px;
	padding:0px;
	text-align: center;
}

#menu ul {
	list-style-type: none;
}

#footer { 
	position: relative;
	padding: 5px 0;
	clear: both;
	text-align: center;
        color: #666633;
        font: 10px serif;
        text-transform: uppercase;
	line-height: 10px;
	border-top: solid 1px #666633;
}

fieldset {
	border: solid 1px #666633;
	padding: 5px;
}

/* image stuff */
.caption {
	text-align: left;
	text-transform: uppercase;
	font: 10px serif;
}

#gavel {
	float: right;
	padding: 10px;
}

#grp-farm {
        padding-top: 20px;
}


#2 trystan

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 05 May 2005 - 08:53 PM

nlsmith, on Jan 29 2005, 10:13 PM, said:

- Any suggestions for improvement would be welcome.

It is a very elegant template - I think it's wonderful.
I'm now trying to use it for a person whose website is a craftsman who fixes coal-fired cookers. :)

I'm having a few problems at the moment, but I've only just started - I'll hope to keep you posted on how I get on with it.

Thanks,
Trystan

#3 gtatler

    Likes Etomite Forums!

  • Member
  • PipPip
  • 338 posts

Posted 16 August 2005 - 08:32 PM

nlsmith, on Jan 29 2005, 09:13 PM, said:

The Gottung template is a very simple Etomite template
Very nice, but noticed showed a momentary "flash of unstyled content" when the menu items are clicked.

I came accross some information that may be helpful to you.

What is a FOUC?
Some pages that use the CSS @import rule experience a curious display quirk in the Windows version of MS Internet Explorer: a momentary flash of unstyled page content.

Code that is susceptible to FOUC.
<head>
<title>My Page</title>
<style type="text/css" media="screen">@import "style.css";</style>
</head>

The solution is to link to another stylesheet as follows - and it works even if the style sheet doesn't actually exist !
<head>
<title>My Page</title>
<!-- following line needed to avoid Flash of Unstyled Content (FOUC) -->
<link rel="stylesheet" type="text/css" media="print" href="print.css">
<style type="text/css" media="screen">@import "style.css";</style>
</head>

See THIS WEB PAGE for further details.

Edited by gtatler, 16 August 2005 - 08:47 PM.


#4 duskglow

    Etomite Forum Newbie

  • Member
  • 2 posts

Posted 08 January 2006 - 01:41 AM

The template and CSS files didn't quite match. I had to use your site to figure it out. I hope you don't mind that there's a site that looks a lot like yours now. Thanks.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users