12 Replies Latest reply: Jul 5, 2012 2:28 AM by Asad 6SM RSS

    In Line Editing - CSS

    Asad 6SM Community Member

      Hi All

       

      I am doing a website at the moment and I wanted to edit the in-line editing tools with catalyst so the user can use these to make changes. Instead of creating CSS classes and telling them how it works, I wanted to use the features such as heading 1,2,3,4,5 and the indent features. We have created the rest of the site using CSS but I cant find where it is I would edit the heading 1,2,3,4,5 and indent features.

       

      If somebody could shed some light on this it would be very helpful.

       

      Many Thanks

       

      Asad Ali

        • 1. Re: In Line Editing - CSS
          Liam Dilley CommunityMVP

          Headings etc are all CSS as well

          h1 {}

          h2{} and so on.

          When the user in the admin chooses the dropdown, then the CSS will know what to do with that HTML format element.

          • 2. Re: In Line Editing - CSS
            Asad 6SM Community Member

            Hi Liam

             

            Thanks for your help.

             

            I am struggling a little bit with trying to get the indentation to work, when I indent it I have it go in by 40px when I actually need it to be 25px, now i have inserted a blockquote in to the CSS and setup the padding, when I give it exessive padding its fint when I try to minus the padding it does not apply it.

             

            Any suggestions would be most welcome.

             

            Thanks

             

            Asad

            • 3. Re: In Line Editing - CSS
              Carol - BCGurus.com Community Member

              Hi Asad,

               

              It may help to understand your issue if you include a link so we can inspect the CSS that is being applied. You won't be able to apply negative padding. I'd say to make sure the margin-left is 0 and just use padding to indent. However, like I said, a link to the issue would help me provide a better answer

               

              Carol | BCGurus.com | http://bcgurus.com/Business-Catalyst-Templates for only $7

              • 4. Re: In Line Editing - CSS
                Asad 6SM Community Member

                Hi Carol

                 

                Thanks for your message, and after having a play with the CSS I managed to sort it, here is what I used:

                blockquote {

                           width: 680px;

                           float: left;

                          margin: -20px;

                           padding: 0px 0px 0px 35px;

                           text-align:left;

                }

                http://121systems01.6sm.co.uk/beverage-logistics-software

                 

                The red bullet points are going to become headers and the text just below is what I needed to indent.

                 

                This seems to have done the trick but it is being a pain in the backend, when you apply the indent it pulls the text below it up so you have to space down to get it properly aligned.

                 

                 

                If you have a better solution please let me know.

                 

                Kind Regards

                 

                Asad Ali

                • 5. Re: In Line Editing - CSS
                  Carol - BCGurus.com Community Member

                  Hi Asad,

                   

                  This is what I would recommend:

                   

                  blockquote { 

                      font-size: 14px;

                      margin: 0;

                      padding: 0 0 14px 20px;

                      text-align: left;

                  }

                   

                  Remove the float and the width. Not needed. Also remove the <p> within the blockquotes and the extra spacing <p> </p> and <br /> in between the items. You may need to adjust the margin on the <ul> to get the spacing you desire inbetween the items.

                   

                  Hope this helps! Let me know if you run into anything else.

                   

                  Carol

                  • 6. Re: In Line Editing - CSS
                    Asad 6SM Community Member

                    Carol,

                     

                    this worked a treat but i still seem to have some spacing issues between the bullet poing at the actual text itself. Any suggestions on how to rectify this? Your help is much appreciated.

                     

                    Many Thanks

                     

                    Asad

                    • 7. Re: In Line Editing - CSS
                      Carol - BCGurus.com Community Member

                      Hi Asad,

                       

                      What are you trying to do with the spacing? Depending on what you want to achieve, you could edit the ul styles:

                      - ul: adjusting the margin. which is currently margin: 11px 0 11px 1px; or the padding on this element padding: 0 0 0 40px;

                       

                      Also, the blockquote is getting extra margin because there is a <p> tag within it.  I would remove the <p> tag all together. I would recommend looking at the code in Firefix and downloading the add-on Firebug. This will let you see the styles on each element and manipulate them in real time to see what will work.

                       

                      Carol

                      • 8. Re: In Line Editing - CSS
                        Asad 6SM Community Member

                        Hi Carol,

                         

                        I have been using firebug but I cant seem to figure out where the css is for the UL you mentioned.

                         

                        1. If you notice the bullet point on the page the text below it sits about 20px below the bullet point, I am trying to narrow that gap so it sits right under the bullet point.
                        2. When i edit it in the back end of BC and press enter it automatically inputs the spacing and the messes the text up so I am struggling to make all the pages look evenly laid out with th correct spacing under it.

                         

                        Thanks again for your help.

                         

                        Asad

                        • 9. Re: In Line Editing - CSS
                          Carol - BCGurus.com Community Member

                          Hi Asad,

                           

                          I would recommmend cleaning up the HTML and remove the blockquotes all together, along with the extra uls, p and div tags. You can use a single unordered list and each li will represent each section. This will be easier for the client to manage as well. You can use a <br /> tag to break the text from the headers In the WYSISYG, you can create a break by pushing (shift + enter). Just pushing (enter) creates a new paragraph. When in doubt, view the code in HTML view and you can clean it up that way.

                           

                          --- Example of clean up ---

                           

                          <ul>

                            <li><strong>Rising Costs in Fuel </strong><br />

                              <a href="/products/roadnet">Roadnet®</a> is route planning software that calculates effective route plans using digital map data incorporating vehicle height and weight restrictions (also useful for heavy shipment loads) together with historical road speed information, resulting in better use of resources to meet demand by delivering more and driving less thus reducing levels of fuel used.</li>

                            <li><strong>Direct Store Delivery Requests</strong><br />

                              It is becoming increasingly common for direct store delivery to take place within the beverage industry these days. This provides a complex challenge for transport managers. Daily route optimisation, fleet vehicle tracking, load planning and automated delivery transactions are all essential for servicing customers effectively. Using <a href="/products/roadnet">Roadnet®</a> <a href="/products/Fleetloader">Fleetloader®</a> and <a href="/products/Pulse">Pulse</a> will allow you to do this successfully and will also shorten the order-cash cycle. Follow the links for more information on these logistic planning apps. </li>

                          </ul>

                          • 10. Re: In Line Editing - CSS
                            Asad 6SM Community Member

                            Hi Carol

                             

                            That looks really good and its just how i want it. The only thing is the text under the <li> needs to be about 20px to the left and not in line with the bullet point.

                             

                            Thanks

                            • 11. Re: In Line Editing - CSS
                              Carol - BCGurus.com Community Member

                              Gotcha. Missed that. I would wrap whatever needs to be 20px to the left within a class and target that class with a margin-left of -20px; If your client is responsible for making edits and they don't want to be in the HTML view, I would revert back to wrapping that content in a blockquote and set that margin: 0 0 0 -20px;

                              • 12. Re: In Line Editing - CSS
                                Asad 6SM Community Member

                                Hi Carol

                                 

                                Thank you for your help on this, the site is now live and the customer is happy