I believe the issue is tied to floats and the slideshow javascript.
Whenever I triggered the layout bug on the live site, it was accompanied by the first slide not rendering correctly. This would cause <div id="r1">
to have a height of 0
which in turn seems to aggravate the afore mentioned float bug. There seems to be some tension between the <ul>
which is floated and the <a>
which is not.
This is the solution that worked for me:
In index.html
add a class (or ID if you prefer) to allow yourself to target the link within the CSS. In this example I have simply given it a class of logo
:
<a class="logo" href="index.html">
<img src="images/Calibrus_logo.png" alt="logo" border="0">
</a>
Then, in your CSS:
// target the link using your chosen selector
.logo {
display: block;
float: left;
}
Once I added those rules, I could no longer replicate the rendering bug.
Side note:
I would recommend declaring your character encoding just after the opening <head>
tag with <meta charset="utf-8">
.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Calibrus</title>
Also, the border
attribute for images has become obsolete. So rather than:
<img src="images/Calibrus_logo.png" alt="logo" border="0">
Simply target the <img>
with CSS and declare:
.logo img {
border: none;
}