DEVHIDE
  • Home (current)
  • About
  • Contact
  • Cookie
  • Home (current)
  • About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy
  • TOS
Login Or Sign up

Modal content not responsive

374 Views Asked by Frai1985 At 18 December 2016 at 21:22 2025-12-07T03:46:18.201000
<div id="myModal" class="modal">

     <!-- Modal content -->
     <div class="modal-content">
         <div class="modal-header">
            <span class="close"></span>
               <h2 id="title-to-modal" style="text-align: center"></h2>
         </div>
         <div class="modal-body">
            <p id="description-modal">
                <div style="text-align: center">
                    <span class="text-center">  
                         <a id="ok-button" name="ok-button" class="next-button ok-button" style="display:inline-block;">OK</a> 
                    </span> 
                </div>
            </p>
         </div>

      </div>

</div>

I have the next code and I have no idea why when I have more lines the text is not going line by line...is everything on a line. What can I do to solve this problem? (The classes and ids don't have style to modify the content..just color..or border)

CSS:

#ok-button{background:transparent;
    border: 2px solid #202229;
    color: #202229;
    padding: 0px 30px 0px 30px;

}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-title{color:#202229;text-align: center;}

#title-to-modal{margin-top: 10px !important;R}

.modal-header {
    padding: 2px 16px;
    background-color: #eeb821;
    color: white;
}

.modal-body {padding: 25px 16px;}
.modal-body #description-modal{line-height: 20px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}
html css responsive
Original Q&A
0

There are 0 best solutions below

Related Questions in HTML

  • Delay in loading Html Page(WebView) from assets folder in real android device
  • Why does a function show up as not defined
  • CSS Class is not applying to element (border width,color,and style attributes)
  • How to sort these using Javascript or Jquery Most effectively
  • how to fill out the table with next values in array with one button
  • Automatically closing tags in form input?
  • Positioning child at bottom of parent with scroll
  • Remove added set of rows
  • Website zoomed out on Android default browser
  • Twitter Bootstrap horizontal form elements on a line
  • http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
  • My navbar is not expanding after collapse
  • when a checkbox is checked how to display a different hidden element using javascript
  • Gaps Vertically Using Dividers
  • Svg containers not positioning properly

Related Questions in CSS

  • CSS Class is not applying to element (border width,color,and style attributes)
  • How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
  • Positioning child at bottom of parent with scroll
  • Play multiple audio files in a slider
  • How to set text over image?
  • Website zoomed out on Android default browser
  • Writing/Overwriting to specific XML file from ASP.NET code behind
  • My navbar is not expanding after collapse
  • when a checkbox is checked how to display a different hidden element using javascript
  • Gaps Vertically Using Dividers
  • CSS: Preventing a property to affect on element until the end of transition
  • Polygon Button with pure CSS
  • transform-origin doesnt apply in safari
  • show/hide multiple div tags at once and change the size of the remaining div tag
  • Mask the image/maps/div (circle) using css and jquery

Related Questions in RESPONSIVE

  • Responsive table using table layout
  • How to make my two sections vertically align, even when scaled, with different amounts of content?
  • How to build a responsive email template using a table structure
  • How to handle image content display in responsive website?
  • Safari responsive box-sizing property conflict
  • Modal content not responsive
  • Problems with responsive image 3 column layout
  • Building an info card with responsive image
  • Getting a parent Div to hug it's multiple floating children on page resize using css
  • Flip effect condition
  • Responsive imgs of different widths with same height
  • responsive images of varying width with a consistent height
  • How can a responsive area be set to maximum or minimum width
  • Bootstrap reponsive grid issue
  • How do i make header and text responsive

Trending Questions

  • UIImageView Frame Doesn't Reflect Constraints
  • Is it possible to use adb commands to click on a view by finding its ID?
  • How to create a new web character symbol recognizable by html/javascript?
  • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
  • Heap Gives Page Fault
  • Connect ffmpeg to Visual Studio 2008
  • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
  • How to avoid default initialization of objects in std::vector?
  • second argument of the command line arguments in a format other than char** argv or char* argv[]
  • How to improve efficiency of algorithm which generates next lexicographic permutation?
  • Navigating to the another actvity app getting crash in android
  • How to read the particular message format in android and store in sqlite database?
  • Resetting inventory status after order is cancelled
  • Efficiently compute powers of X in SSE/AVX
  • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Popular # Hahtags

javascript python java c# php android html jquery c++ css ios sql mysql r reactjs

Popular Questions

  • How do I undo the most recent local commits in Git?
  • How can I remove a specific item from an array in JavaScript?
  • How do I delete a Git branch locally and remotely?
  • Find all files containing a specific text (string) on Linux?
  • How do I revert a Git repository to a previous commit?
  • How do I create an HTML button that acts like a link?
  • How do I check out a remote Git branch?
  • How do I force "git pull" to overwrite local files?
  • How do I list all files of a directory?
  • How to check whether a string contains a substring in JavaScript?
  • How do I redirect to another webpage?
  • How can I iterate over rows in a Pandas DataFrame?
  • How do I convert a String to an int in Java?
  • Does Python have a string 'contains' substring method?
  • How do I check if a string contains a specific word?

Copyright © 2021 Jogjafile Inc.

  • Disclaimer
  • Privacy
  • TOS
  • Homegardensmart
  • Math
  • Aftereffectstemplates