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

Broken layout with dimensions in percentages #16

Open
mcm-ham opened this issue Dec 25, 2017 · 0 comments
Open

Broken layout with dimensions in percentages #16

mcm-ham opened this issue Dec 25, 2017 · 0 comments

Comments

@mcm-ham
Copy link
Owner

mcm-ham commented Dec 25, 2017

I have an UL with 9 LI items laid out more or less like the image on the project's homepage. The difference is that UL has width and height set to 100% within a fixed-dimension container, and all LI items have width and height set to 33.33% and floated left.

What happens is that layout becomes broken in various ways when placeholder replaces one of the LI elements. I managed to fix this by removing the .css(...) part on line 124 (I am using the version of the code that can be downloaded from the download section).

I assume that the calculated width/height that jQuery returns doesn't exactly match the way browser calculates 33.33% in this case.

Here is the relevant CSS I use:

.shuffleboard {
position: relative;
padding: 1em;

}

.shuffleboard ul {
position: relative;
margin: 0 auto;
padding: 0;
width: 100%;
height: 100%;

}

.shuffleboard li {
list-style: none;
float: left;
width: 33.333%;
height: 33.333%;
position: relative;

}

This work item was migrated from CodePlex

CodePlex work item ID: '33636'
Vote count: '1'

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

No branches or pull requests

1 participant