Solved

Bootstrap Modal overlay problem

Posted on 2014-09-04
7
474 Views
Last Modified: 2014-09-07
Hi all,
Here is a ink to 2 pages:
1. http://www.marlboroughaeroclub.co.nz/cms/index.php?page=Course-content
2. http://www.marlboroughaeroclub.co.nz/cms/

There is a newsletter sign up form field in the footer. Trying to submit the form without entering anything will result in a Modal popping up giving a validation error.
My problem is that on page 1 the modal overlay covers the modal content and on page 2 the overlay works as it should do.
To my tired eyes the structure and css or both pages is identical however there must be an element in the cascade that is causing the difference.
If anyone can spot it I would be very grateful.
Cheers,
N
0
Comment
Question by:Neil_Bradley
  • 4
  • 3
7 Comments
 
LVL 43

Expert Comment

by:Rob
ID: 40307232
Personally, I would move your modal out of the "container" object.  Have the whole element at the bottom just before the </body> tag
0
 
LVL 5

Author Comment

by:Neil_Bradley
ID: 40307270
That would be my preference too however not possible as the modal is generated within a content management system and the re programming would be considerable.
Link  2 which is the home page does not have the issue and the structural events of that page are identical to that of the inner pages (of which are causing the problem).
N
0
 
LVL 43

Expert Comment

by:Rob
ID: 40307290
Sure I can understand that. Does your homepage use a different template to the subsequent pages? It could be that the modal is included twice or initialized differently. I'll keep looking but these things will be easier for you to find.
How are you including the modal in the page?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 5

Author Comment

by:Neil_Bradley
ID: 40307327
Yes,
The template is different however the differences are extreme slight. The modal does not exist in the page prior to form submission.
In the first div tag after the opening body tag there is a style called fade. This is present in both the working and none working example however if I remove the fade class from the none working example it fixes the issue....
Clue maybe?.
0
 
LVL 43

Expert Comment

by:Rob
ID: 40307426
You do have a missing tag somewhere on the page that does work.

I would check your markup again - i'll also have a look through for what's missing
0
 
LVL 43

Accepted Solution

by:
Rob earned 500 total points
ID: 40307427
0
 
LVL 5

Author Closing Comment

by:Neil_Bradley
ID: 40308993
Hi Rob,
all validation errors fixed. While this did not solve the problem it did point me in the right direction. In the end it was the animation css that was causing the problem.
Cheers for the pointers.
N
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question