Hi all,
I am working on a site:
http://www.philau.edu/library/singlebullet/
I am having some CSS issues, in Google Chrome.(the site looks awful in IE–but, that’s okay for this project).
There is the set of navigation:
<section class="cr-container">
<input id="select-img-1" name="radio-set-1" type="radio" class="cr-selector-img-1" />
<label for="select-img-1" class="cr-label-img-1"><span>Introduction</span></label>
<br />
<br />
<br />
<input id="select-img-2" name="radio-set-1" type="radio" class="cr-selector-img-2" />
<label for="select-img-2" class="cr-label-img-2"><span>Assassination</span></label>
<br />
<br />
<br />
<input id="select-img-3" name="radio-set-1" type="radio" class="cr-selector-img-3" />
<label for="select-img-3" class="cr-label-img-3">Warren Commission <span>Appointment</span></label>
<br />
<br />
<br />
<input id="select-img-4" name="radio-set-1" type="radio" class="cr-selector-img-4" />
<label for="select-img-4" class="cr-label-img-4">Warren Commission <span>Investigation</span></label>
<br />
<br />
<br />
<input id="select-img-5" name="radio-set-1" type="radio" class="cr-selector-img-5" />
<label for="select-img-5" class="cr-label-img-5" style="width:200px;">About Specter & Continuing <span>Questions</span></label>
I am using CSS to make the transitions happen with the panels, so the CSS classes target that transition.
Because of the theme, it’s important that the redline below the navigation extend beyond the navigation text. To achieve this, here is what I did. I added a red bottom border:
.cr-container input.cr-selector-img-1:checked ~ label.cr-label-img-1 span,
.cr-container input.cr-selector-img-2:checked ~ label.cr-label-img-2 span,
.cr-container input.cr-selector-img-3:checked ~ label.cr-label-img-3 span,
.cr-container input.cr-selector-img-4:checked ~ label.cr-label-img-4 span,
.cr-container input.cr-selector-img-5:checked ~ label.cr-label-img-5 span
{
border-bottom:2px solid #c75753;
}
The intention is that when a navigational element is selected, the red line will appear. To extend the red line, I’m doing this:
label span { padding-right: 130px; }
This targets the underline to be on the last word of the navigation text, which is what I want…however, in Chrome, when you select a navigational element, the whole text disappears…I know it’s an issue with how I am doing the label span above; if I turn that off in Firebug, the issue goes away.
Any ideas why this is happening in Chrome, and what I can do to correct the issue?
Thanks so much,
Michael