Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some interior divs lay on top of each other #66

Open
ghost opened this issue Dec 4, 2014 · 1 comment
Open

Some interior divs lay on top of each other #66

ghost opened this issue Dec 4, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 4, 2014

I have a section which has three interior divs...

    <div id="sitename">
        <div>ottawa</div>
        <div>coop</div>
        <div>network</div>
    </div>

[site is on WordPress and link is : http://ottawacoopnetwork.davidmanning.ca/]

CSS is...

sitename {

display: inline-block;
vertical-align: top;
width: 160px;
height: auto;
padding: 0;
margin: 0.75rem 2rem 0.5rem;
font-family: albertoregular;
font-size: auto;
font-weight: 700;
text-transform: lowercase;
letter-spacing: 2px;
line-height: 2em;

}

jQuery is...

$(document).ready( function() {
    $('#sitename').bigtext();
});

Lettering results are...

screenhunter_34 dec 04 18 26

Baffled as to what's wrong.

@ghost
Copy link
Author

ghost commented Dec 4, 2014

Turned 'divs' into 'spans' and added to CSS...

#sitename span {
display: inline-block;
}

...this solved problem, but shouldn't have to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants