We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1330
    • 79 Posts
    I currently have Modx deployed for a movie theater’s website.
    The problem I am having is with the show times.
    They are not spacing out enough.
    I wanted to know if anyone knows of a way with css or html that I could make spaces" " larger then 1 space.
    eg. 3x a normal space " " or something like that, or if there is a better way to get them to space properly.
    www.rockin8.com is the website
      • 16034
      • 107 Posts
      Hi, I just googled for "css word spacing" and it seems to be what you need.

      Something like this might do the trick(not tested):
      body {
          word-spacing:1.2em;
      }

        MODx snippet-glossary 101:
        Ditto = Content Lister -- Wayfinder == Menu Builder -- Jot = Comment Control
        • 1330
        • 79 Posts
        Thanks a ton, didnt think google was gonna be much help on that one. laugh
          • 1330
          • 79 Posts
          Well doesn’t look like IE accepts
          a {
          text-decoration: none;
          }
          

          So is there anything that can help do this with IE? 73% of the clients viewing the page use IE so it is important that it work in IE.
          I’ve done some searching and couldn’t find one for IE (7) the prior code is sopose to for for IE 6 though.
          Here is my current CSS:

          * { padding: 0; margin: 0; }
          
          body {
           font-family: Arial, Helvetica, sans-serif;
           font-size: 12px;
           background: url(images/bg2.gif) #202020 repeat-y ;
          }
          a {
           text-decoration: none;
          }
          #wrapper { 
           margin: 0 auto;
           width: 800px;
          
          }
          #header {
           width: 800px;
           background: url(images/R8C_logo.jpg) no-repeat;
           height: 150px;
           padding: 10px;
           margin: 10px 0px 5px 0px;
          }
          #center {
           text-align: center;
          }
          
          #leftcolumn { 
           color: #FFF;
           border: 0px solid #000;
           background: #202020;
           margin: 0px 5px 5px 0px;
           padding: 0px;
           height: auto;
           width: 650px;
           float: left;
          }
          s1 {
           word-spacing: 0.4cm;
          }
          
          .poster{
           padding: 5px;
          }
          
          #menu {
          	width: 120px;
          	height: 336px;
          	margin: 0 auto;
          	background: #202020;
          	border-top: 1px solid #FFFFFF;
          	border-bottom: 1px solid #FFFFFF;
          	border-left: 1px solid #FFFFFF;
          	border-right: 1px solid #FFFFFF;
          	;
          }
          
          #menu h2 {
          	display: none;
          }
          
          #menu ul {
          	margin: 0;
          	padding: 0;
          	list-style: none;
          }
          
          #menu li {
          	display: inline;
          	height: 48px;
          }
          
          #menu a {
          	display: block;
          	float: left;
          	width: 120px;
          	height: 38px;
          	padding-top: 10px;
          	text-align: center;
          	text-decoration: none;
          	color: #FFFFFF;
          }
          
          #menu a:hover {
          	background: #CC0000;
          	color: #FFFFFF;
          }
          
          #rightcolumn { 
           float: right;
           color: #FFF;
           background: #202020;
           border: 0px solid #000;
           margin: 0px 0px 5px 0px;
           padding: 0px;
           height: auto;
           width: 140px;
           display: inline;
           
          }
          a:link {color: #FFFFFF}     /* unvisited link */
          a:visited {color: #FFFFFF}  /* visited link */
          a:hover {color: #BF0303}   /* mouse over link */
          a:active {color: #BF0303}   /* selected link */
          #footer { 
           width: 780px;
           clear: both;
           color: #FFF;
           background: #202020;
           margin: 0px 0px 20px 0px;
           padding: 20px;
          }
          
            • 25663 MODX Staff
            • 12,272 Posts
            IE definitely supports text-decoration in stylesheets. Run your HTML and your CSS through the w3c.org validators and fix any errors that might be present.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 27708 MODX Staff
              • 2,502 Posts
              Just a point also. You have your showtimes wrapped in an invalid element <s1> you can’t just make up tags (well if you want to work in XML you can) but anyway try <div class="s1"> and in your stylesheet where you have s1 change it to .s1.

              The text-decoration: none will work in all browsers but I think that your problem is that you have backgrounds showing up on the image because you have universally defined the background on all a elements instead of within a particular group of elements.

              To control a elements in your #menu then make those rules #menu a. To control the a element within the table then use table a in your stylesheet. This is the cascade part of Cascading Style Sheets.

              Hope this leads you down the right path.

              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
                • 1330
                • 79 Posts
                Ok I did it that way but still get 12 errors because of where I have the divs.
                I only need the show times spaced out further.
                Is there any hope?
                (works in IE now)
                  • 27708 MODX Staff
                  • 2,502 Posts
                  Sorry,

                  I forgot that you had the a wrapped around the whole set of contents in the td so you should replace all your divs with spans. I should have looked more carefully. You can’t put a div (block level element) into a (inline element)--though there are exceptions.

                  All the best,


                  Personally, I would do the following with the whole layout instead as what you have is not tabular data and could be generated using Ditto and a few TVs.

                  <!-- Wrapper for all listings-->
                  <div id="listings">
                      <!--Wrapper for individual listings-->
                      <div class="listing">
                          <a href="index.php?id=14">
                              <h3 class="title">
                              Eye, The
                              </h3>
                          </a>
                          <div class="ratings">
                              PG-13 - 97 minutes
                          </div>
                          <a href="index.php?id=14">
                              <img src="assets/images/posters/theeye_smallposter.jpg">
                          </a>
                          <ul class="s_times">
                              <li>5:15</li>
                              <li>7:30</li>
                              <li class="last">9:35</li>
                          </ul>
                      </div>
                  </div>
                  

                  .listing{
                      width:115px;
                      float:left;
                      margin:10px;
                  }
                  
                  #listing h3{
                      font-size: //you do your magic 
                  }
                  
                  .ratings{
                      font-size:  //whatever
                  }
                  .ul.stimes{
                      margin:0;
                      list-style:none;
                  }
                  
                  .s_times li{
                      display:inline;
                      margin-right:10px; //You'll need to play with this
                  }
                  
                  .s_times li.last{
                      margin-right:none;
                  }
                  


                  I hope that makes sense. You can use ditto templates to use my HTML above to add placeholders relating to Template Variables for the individual shows and not have to edit this page by hand. You can just create a page for each film with template variables for the small poster image, show times.

                  If I have confused you more than helped sorry and play with this on your off time.

                  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
                    • 1330
                    • 79 Posts
                    The client is extremely picky. (He is a multimillionaire)
                    He wants the show times, rating, runtime and title all on one page and for the individual pages to have the synopsis.
                    I had it setup with all nice coding but in order to fulfill his wishes I had to break some coding rules.
                    As it is right now it works well. The website is updated almost daily with the new show times/movies.
                    There are things I would have liked to change to make the code pretty and clean and accurate but the clients wishes come first. And he is very, very picky.
                      • 27708 MODX Staff
                      • 2,502 Posts

                      It is possible to fulfill your client’s specific needs and make life easier for both of you. (If you so desired)

                      You create a template for the Synopsis Page that doesn’t include the TV placeholders (show times, ratings, image) for the TVs on the page.
                      You create a template for the main page that has a ditto call that includes a template that includes placeholders for the TVs (show times, ratings, image)
                      And your net result is the same but with less fighting with the HTML on the Index document. Plus an added bonus is that you could generate an RSS feed of showtimes. That would be a huge benefit to your client.

                      Sometimes on a client project I will do what I call "unrequested improvements" when I want to refactor code or when trying to find a better way to do something (that will result in the same outcome. This allows me to learn and make things easier on me because I won’t be looking at the site and saying: "Man I wish I could get that to work this way--my updates would take 10 minutes then." This has allowed me to learn tonnes about PHP, CSS, HTML, MODx and other CMS applications. In some cases you can pass on the educational cost to the client but sometimes I just like to learn.

                      Best you you.

                      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