Hi,
I found another solution. It treats the logo as content, not as part of the design, and it doesn't use {cms_selflink}, so some may not like it. However, for me it has advantages. Well, until now I only tested with Firefox 1.0...
In the layout stylesheet, I uncommented the background, text-indent and width attributes.
Code: Select all
div#header h1 a {
/*background: url(uploads/images/logo.gif) no-repeat 0 12px;*/
display: block;
height: 80px;
/*text-indent: -700em;*/
/*width: 198px;*/
margin: 0;
padding: 0;
text-decoration:none;
}
The header section in the template looks like this
Code: Select all
<!-- Start Header, with logo image that links to the default start page -->
<div id="header" class="clearfix">
<a href="http://www.website.de/cmsms/index.php/home" style="float:right;">
<img width="200" height="100" src="uploads/Images/logo.gif" alt="MyWebsite" />
</a>
<h1>
<a href="http://www.website.de/cmsms/index.php/home" style="line-height:80px; vertical-align:middle; padding-left:50px; color:#000000;">Das Salmlernetz</a>
</h1>
<hr />
</div>
<!-- End Header -->
Now I can use logos which are larger than the block -> background:url would cut them off (see screenshot below). But as {cms_selflink} doesn't work with images, I had to use HTML style links.
"text-indent: -700em;" pushes any text out of the screen, which is not wanted here, and "width: 198px;" limits the area working as link. Without the latter almost all of the header area functions as link, not only the text.
"Float" places text and image inline.
I placed the additional style instructions for the linked text directly in the template, which may be against orthodoxy, but you may create a new stylesheet for this single use if you like.
This is how it looks. All the header area (in blue) and the image are linked:
