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

Not working correctly with float inputs #31

Closed
nonw opened this issue Mar 11, 2015 · 1 comment
Closed

Not working correctly with float inputs #31

nonw opened this issue Mar 11, 2015 · 1 comment

Comments

@nonw
Copy link

nonw commented Mar 11, 2015

I found a tiny problem with alertify when float inputs are used on a website like this:

select,
textarea,
input[type = "text"],
input[type = "password"] {
    float: left;
    ...
}

Then the alertify prompt box is not displayed correctly. You can easily fix this by adding just one line to your existing css code:

.alertify .ajs-body .ajs-content .ajs-input {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 4px;
    border-radius: 2px;
    border: 1px solid #CCC;
    float: none; /* this line is added */
}
@MohammadYounes
Copy link
Owner

I believe this should be handled by the website author and not this library, as it would not stop at float.

For example:

select,
textarea,
input[type = "text"],
input[type = "password"] {
    position:fixed;
    ...
}

or

select,
textarea,
input[type = "text"],
input[type = "password"] {
    color: #FFF;
    ...
}

Thanks.

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

2 participants