Hello everyone!
In my website's header I have my logo (almost at the top-left of the page) and a link to other website (just on the right of the logo).
Everything goes OK but the attempt quiz page. When I enter in this page (for any of my quizzes), the link goes to the right of the page!
If it helps, this is part of my header code:
<div id="page">
<?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
if ($home)
{ // This is what gets printed on the home page only
?>
<?php print_container_start(true, '', 'header-home'); ?>
<div class="headermain"><img src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/logo.png" alt="My site" title="My site" id="logo" /></div>
<div class="linkbackclass">
<a href="http://othersite.com"> Go to other site</a>
</div>
<?php print_container_end(); ?>
<?php
}
else if ($heading)
{ // This is what gets printed on any other page with a heading
?>
<?php print_container_start(true, '', 'header'); ?>
<div class="headermain"><img src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/logo.png" alt="My site" title="My site" id="logo" /></div>
<div class="linkbackclass">
<a href="">http://othersite.com"> Go to other page</a>
</div>
<h2 class="headermain"><?php echo $heading ?></h2>
<?php print_container_end(); ?>
<?php } ?>
And this is part of my styles_fonts.css:
div.linkbackclass{
font-weight:bold;
padding-top: 1em;
font-size: 0.75em;
color:red;
}
.linkbackclass a {
color:red;
}
.headermain {
font-weight: bold;
margin-top: 0.63em;
margin-left: 0.2em;
margin-right: 1em;
}
h2.headermain {
margin-top: 0.35em;
}
#header h2.headermain {
font-size: 1.7em;
font-weight: normal;
font-family:Verdana;
}
I don't know where to look at, so, any of you could help me? Why my CSS is wrong with the attempt page?