We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    You have both width and max-width set at 150 on your sidebar. You either need a greater width or shorter items to put in it.

    Bob
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Form fields need to be explicitly sized or they will use the browser’s default width and will extend beyond their container.
        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
        • 36605
        • 70 Posts
        Thanks guys, but I’ve tried to make those inputs smaller, by class and by just adding width="125px". How do I do it?

        I’ll post up the code later, I’ve got to get to class./ Thanks!
          • 27330
          • 884 Posts
          the px is no-good in your HTML code.
          in CSS do input{width:125px;} and if you want to stick to HTML just remove the px
            • 36605
            • 70 Posts
            that’s not doing the trick at all actually (what I meant by I tried classes)...I have no clue what it is!
            Chunk code:
            <img src="[(base_url)]/assets/templates/blue3/images/onr_07.png" /><br /><div class="logintext">
            	<p><form  class="input"  action="[~[*id*]~]" method="POST">
            			<label for="wlpeUsername"><b>Username</b>
            			<input id="wlpeUsername" type="text" name="username" />
            			</label>
            			</p>
            			
            			<label for="wlpePassword"><b>Password</b>
            				<input id="wlpePassword" type="password" name="password"  />
            			</label>
            			
            			<labelfor="wlpeStayLoggedIn">Stay Logged In
            				<select id="wlpeStayLoggedIn" name="stayloggedin">
            					<option value="">No</option>
            					<option value="315569260">Forever</option>
            				</select>
            			</label>
            			
            		<fieldset id="wlpeLoginButtons">
            			<button type="submit" id="wlpeLoginButton" name="service" value="login">Login</button>
            			<button type="submit" id="wlpeReminderButton" name="service" value="forgot">Forgot Password</button>
            			<button type="submit" id="wlpeRegisterButton" name="service" value="registernew">Register</button>
            		</fieldset>
            	</form></div>


            CSS (copy and pasted those sections):
            .logintext {
            	color: #003333;
            	font-weight:bold;
            	font-size:10px;
            	text-align: left;
            	margin-left: 7px;
            	margin-top: 7px;
            	}
              • 27708 MODX Staff
              • 2,502 Posts
              There is no logintext class in the form you posted.

              To make it easier, in the chunk add an id of loginform like so

              ...<p><form id="loginform" class="input"  action="[~[*id*]~]" method="POST">...


              Then in your CSS file add the following:

              #loginform input, #loginform select{
                  width:100px;
              }
              


              Keep in mind that when using the CSS box model that you have to make sure that the width of an inner element plus margins, padding and borders can’t exceed the container or it will cause it to expand or break the layout. So, if your sidebar is 150px wide and it has 20px padding your width of the elements inside should be no more than 130px wide. If there is a border on the inner elements that should be accounted for.

              Based on your questions it is very clear that you have never built a complete site using HTML and CSS other than possibly using a WYSIWYG editor. That is nothing to be ashamed of as we were all there once but you should really get a good book (for beginners Elizabeth Castro’s XHTML for the World Wide Web 6th Edition is probably one of the best. I use it as a desk reference for the Appendices now but it (the 5th edition) was terrific) to learn about CSS or check out Sitepoint.com’s new CSS reference site.

              Let me know how it goes.

              Cheers,

              Jay
                Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                • 36605
                • 70 Posts
                thanks man for the help! But I still don’t quite get the difference... Was the difference that the id you used was connected with the class I was already using? I’m guessing that you can’t have a well functioning site if with an id not working together with the class...

                Also, the Forgot Password button is still huge in IE - How do I change that? More of how would I? Just make it a smaller button?
                  • 27708 MODX Staff
                  • 2,502 Posts
                  Quote from: latedude32 at Mar 09, 2008, 02:25 PM

                  Was the difference that the id you used was connected with the class I was already using?
                  No, the reason I used an ID vs. a class name is that IDs identify unique elements in a document and Class(es) classify any elements. So in the case of a top level navigation or a Login form you are only ever going to have one on a page so using ID is stronger than having a class. The reason for this is specificity. Another way to look at it is that an ID is like your name it identifies you uniquely but your last name alone could be a class as it identfies you and everyone else who has the last name of whatever. My name is Jay Stephen Gilmore and I am the only one that I know of but there are lots of Gilmore’s. More specific is the ID and more generalised is a class.

                  Quote from: latedude32 at Mar 09, 2008, 02:25 PM

                  Also, the Forgot Password button is still huge in IE - How do I change that? More of how would I? Just make it a smaller button?
                  Regarding your login form button you should look at styling buttons here. BTW unless you are using a specific width buttons will get their width from the text of the button. Since Forgot Password is the longest text the button will be widest.

                  If you have more questions, please feel free to ask.
                    Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                    • 36605
                    • 70 Posts
                    OK - So thank you for all past help SmashingRed and all others who have helped me out with this! It has been incredible trying to get this site working the way I wanted it to (which it still isn’t fully huh), but ModX still was the best way to go about it smiley

                    So now I’ve changed it from having a News page to putting the News on my front page at the site (www.onr23.org)

                    Here’s the current tpl I’m using:
                    <p><div style="margin-left: 10px;"><div class="newsbody_frontpage"><div class="newstitle_front"><a href="[~[+id+]~]" class="titlesizefront">[+pagetitle+]</a> <span class="newsby">by <strong>[+author+]</strong> on [+date+]</span></div><div style="text-align: left; margin-left: 15px; margin-right: 2px; margin-top:5px; width: 399px; max-width: 399px;">[[DynamicDescription? &maxWordCount=`50` &id=`[+id+]`]]</div><br/><br/><div class="more"><a href="[~[+id+]~]">Read More</a></div></div></div></p>


                    In Firefox atleast it is making the problem of the text sprawling out past the actual divs/content box. How do I go about fixing this? Also between browsers, the headings are HUGELY different in size. What can I do about this?



                    Thanks in advance for all help! grin