We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12603
    • 13 Posts
    I am totally stumped.
    I've uploaded some images that I hope will help explain what is happening (see below).

    The site you can visit (yes yes, its not complete but it is a MODX Rev site)..
    http://myneverwinter.com

    As you can see, the login form has just the two input fields username and password, both have the same CSS, see the included code below.
    In the first image, you see how the site SHOULD look, and DOES look while I preview the page in Chrome on my local machine. No modx just pure HTML + CSS.
    In the second image is the form, as it should be displayed CORRECTLY.
    In the third image is the form as it appears LIVE in MODX.

    Clearly MODX does not handle CSS well? or.. can someone see something I do not? IF you click on the username field POOF! the background images appear. Why are they NOT appearing on page load? Any help would be appreciated.


    mnloginFormTPL chunk
            <div class="mnloginForm"><!-- start .mnloginForm -->
            
                <form action="[[~[[*id]]]]" method="post">
                    <legend>[[+actionMsg]]</legend>
                    <label>[[%login.username]]
                        <input id="text"
                               type="text"
                               name="username"
                               placeholder="Enter Username"
                               autofocus />
                                
                    </label>
                    <label>[[%login.password]]
                        <input id="text"
                               type="password"
                               name="password" 
                               placeholder="Enter Password" />
                    </label>
                    
                    <input type="hidden"
                           name="returnUrl"
                           value="[[+request_uri]]" />
                    <input type="hidden"
                           name="service"
                           value="login" />
                            
                    <span><input type="submit"
                                 name="Login"
                                 value="[[+actionMsg]]" />
                    </span>
                </form>
                
                <div class="mnloginMessage"><!-- start .mnloginMessage -->
                    [[+errors]]
                </div><!-- end .mnloginMessage -->
                
            </div><!-- end .mnloginForm -->
    


    loginFormCSS

    .mnloginForm {
    	position: relative; float:left; 
    	text-align: left; display: block;
    	clear: both; width: 135px;}	
    	.mnloginMessage {
    		position: relative; float:left; width: 135px; 
    		font-family: Verdana, Geneva, sans-serif; font-size: 10px; 
    		font-style: italic; line-height: 12px; text-transform: capitalize; 
    		color: #ff9900; display: block; text-align: center; vertical-align: middle;}
    	input[type=text], input[type=password] {
    		background: url(../images/login_input_bg.png) no-repeat center center; 
    		color:#ff9900; width:135px; height:40px; border:0; 
    		text-align: center; vertical-align: middle; font-size: 12; padding:0;}
    	input[type=submit] {
    		background: url(../images/login_submit_btn.png) no-repeat center center;
    		border:0px;	width:135px; height:28px; font-size:0px; line-height:0px;}
    		input[type=submit]:hover {cursor:pointer;}
    		::-webkit-input-placeholder {color:#993300;}/* WebKit browsers */
    		:-moz-placeholder {color:#993300;} /* Mozilla Firefox 4 to 18 */
    		::-moz-placeholder {color:#993300;} /* Mozilla Firefox 19+ */
    		:-ms-input-placeholder {color:#993300;} /* Internet Explorer 10+ */
    		*:focus {outline: none;}
    
    
    [ed. note: ibuildermiles last edited this post 13 years, 6 months ago.]
      • 3109 ☆ A M B ☆
      • 894 Posts
      Try adding your background image to your inputs when they have focus that should take care of your issue.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 12603
        • 13 Posts
        Quote from: benmarte at Mar 12, 2013, 07:51 AM
        Try adding your background image to your inputs when they have focus that should take care of your issue.

        um, no. this has no affect at all, the images just will not appear until the visitor actually types, as in, hits a key.
        thanks for the suggestion though, I do appreciate the help.
          • 3109 ☆ A M B ☆
          • 894 Posts
          Do you have a live link with the MODX form or is the link you posted it?

          It seems to be working fine for me on all browsers (Chrome, Safari, Firefox, Opera even IE9) so not sure what the problem is.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 12603
            • 13 Posts
            Quote from: benmarte at Mar 12, 2013, 08:59 AM
            Do you have a live link with the MODX form or is the link you posted it?

            It seems to be working fine for me on all browsers (Chrome, Safari, Firefox, Opera even IE9) so not sure what the problem is.

            the live link is as posted.. http://myneverwinter.com
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Looks good to me on FF.

              I'd use some javascript to dock that copyright line to the bottom of the screen. It ruins the flame effect stuck in the middle of it like it is.

              Actually, looking at it again, I'd make it a little less obtrusive and put it at the bottom of one of the sidebars. That flame effect is neat; it's a shame to distract from it.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 12603
                • 13 Posts
                Quote from: sottwell at Mar 12, 2013, 09:23 AM
                Looks good to me on FF.

                I'd use some javascript to dock that copyright line to the bottom of the screen. It ruins the flame effect stuck in the middle of it like it is.

                Actually, looking at it again, I'd make it a little less obtrusive and put it at the bottom of one of the sidebars. That flame effect is neat; it's a shame to distract from it.

                Actually, I've already moved it to the footer of the center content container (middle column) between the curlies. smiley on the design page.. not yet live. but that's where it will go
                  • 12603
                  • 13 Posts
                  On another note, it does work as intended in FF, Opera, AND.. yes.. IE10 Just not Chrome.
                    • 3109 ☆ A M B ☆
                    • 894 Posts
                    What browser is giving you this issue like I said it's working fine on every browser I've checked it on, wish i could be of more help but I just don't see this issue happening.
                      Benjamin Marte
                      Interactive Media Developer
                      Follow Me on Twitter | Visit my site | Learn MODX
                      • 36926
                      • 701 Posts
                      Looks fine for me in chrome.

                      Not sure if it's causing any issues, but you <nav> within your code but aren't using an html 5 doctype.