Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Way 1

The standard according tro to above

Way 2

Put styles flat on as styles in the body. As a prerequisite, I have an apache to hold some static files.

...

Add the style directly in:

Kodeblok
<link rel="stylesheet" type="text/css" href="/afstyle.css">


<@markup id="css" >
   <#if config.global.header?? && config.global.header.legacyMode && config.global.header.dependencies?? && config.global.header.dependencies.css??>
      <#list config.global.header.dependencies.css as cssFile>
         <@link href="${url.context}/res${cssFile}" group="header"/>
      </#list>
   </#if>
....
.....

Code in /var/www/afstyles.css:

Kodeblok
body
{
width: 1500px;
overflow: auto;
margin-left: auto;
margin-right: auto;
}
. <style media="screen">
.logo img
{
  content:url("/MOSLogo.jpg");
  width: 763px;
  height: 172px;
}
.alfalfresco-header-Header
{
  color: white;
  background-color: #006F9A #1B79A9!important;
}
.alfresco-logo-only img
{
  </style>
....
.....content:url("/MOSLogo.jpg");
  width: 763px;
  height: 172px;
}
.alf-header
{
  color: white;
  background-color: #00608D !important;
}
.alfresco-share
{
  color: white;
  background-color: #00608D !important;
}
#doc3
{
  background-color: white;
/*  width: 1200px; */
  margin-left: auto ;
  margin-right: auto ;
}

 

Giving my some reasonable layout:

...