We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10226
    • 412 Posts
    Just kidding, I don’t think it is all that messed up. I will be honest, this is my first modx site and my first encounter with CSS. At present I use a single global CSS file (and one for slimbox). I started with a modx template and have modified it beyond recognition, I don’t even remember what one it was. Right now I have a few issues. One of them is gluing the footer to the bottom of the browser, looks like this is fairly hard to do. I was able to do this, but only after disabling my menu. Firefox will not center my content without using a ’wrapper’ - another FireFox only issue can be visible here http://sweetskies.fruitwerks.us/hmm.php I can band-aid this with throwing in blank paragraphs. I have modified my current CSS to work with my menu, my wife really loves the menu. I showed her many others and explained I can change the color and such but she likes the look and the hover effects. I understand how CSS works and how to change things, but I can’t exactly grasp the position elements. All I need is a menu that works on every browser, a header, and a single column of content. I assume it is possible to skin most menus with my current look? As for the footer I don’t really care, but some of my pages are short and if it is not overlaying the logo like it is now, I would have to manually pad it. I have looked at various CSS programs but I only found one decent looking one and it was for Mac.

    Any suggestions?

    Thanks!
      • 6726
      • 7,075 Posts
      Lots of questions into one paragraph wink !

      There are many things which would need fixing in your CSS, and that’s only normal when you jump in for a first design.
      For instance having the footer use a clear + absolute positionning is a bit contradictory tongue
      Also, it helps a lot indenting your html to have a clear view, especially when you have nested divs it avoids issues like forget closing an element.

      I am not sure I understand the whole hidden div thingy at the end :

      <div id="lbOverlay" style="visibility: hidden; opacity: 0;"/>
      <div id="lbCenter" style="width: 250px; height: 250px; margin-left: -125px; display: none;">
      <div id="lbCanvas">
      <a id="lbPrevLink" href="#" style="display: none;"/>
      <a id="lbNextLink" href="#" style="display: none;"/>
      </div>
      </div>
      <div id="lbBottomContainer" style="display: none;">
      <div id="lbBottom">
      <a id="lbCloseLink" href="#"/>
      <div id="lbCaption"/>
      <div id="lbNumber"/>
      <div style="clear: both;"/>
      </div>
      </div>



      Honestly, I don’t mean to discourage you but I guess it would be faster and easier to just start again with a blank slate for the site html/css structure. A good start when you begin with CSS is using templates, especially when what you’re trying to do is not a custom design : it’s more than enough to achieve a cool and clean design. Plus, you learn along and refine parts you need changing.

      A few references come to mind :
      http://www.glish.com/css/
      http://www.bluerobot.com/web/layouts/
      http://www.thenoodleincident.com/tutorials/box_lesson/boxes.html

      Just take the basic structure from there, and fill it in with the existing content (no need to re-do the whole thing smiley )
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 5091
        • 332 Posts
        this is also a very good tutorial in understanding list and basic site structure
        http://css.maxdesign.com.au/
          • 10226
          • 412 Posts
          Yeah, looks like I am starting fresh. not sure where you got that code from davidm. I have been to all the links mentioned already. I have a lot to learn.

          Thanks!
            • 6726
            • 7,075 Posts
            I got that code from you page !
            Maybe some plugin/module is inserting it...

            You’ll learn, a few weeks is all it takes to feel confident smiley
            You’re on the right track !
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l&#39;outil id
              • 33372
              • 1,611 Posts
              That clear:both div at the end looks to me like the typical way to force Firefox to extend an element to its true bottom when what it contains is only floated content.

              You can find a lot of good designs to play with at Open Source Web Design.
                "Things are not what they appear to be; nor are they otherwise." - Buddha

                "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                • 8619
                • 229 Posts
                Good job for a first CSS site. It takes a little time to figure some things out, but here are some links that really helped me when first learning about CSS:

                Chris Pederick Web Developer Toolbar for Firefox: Great resource to modify and view your site with lots of tools;

                https://addons.mozilla.org/en-US/firefox/addon/60

                Validate your XHTML: (helps to isolate issues with the coding)

                http://validator.w3.org/

                Validate your CSS: (finds irregularities in your CSS, localizes potential problems)

                http://jigsaw.w3.org/css-validator/

                CSS Basics:

                http://www.cssbasics.com/

                Position is everything - great site about CSS cross-browser compatability issues and their fixes:

                http://www.positioniseverything.net/

                I have a ton more links, if you would like I can post them here for you, or PM me with your email and I can send them to you. Best wishes!
                  • 10226
                  • 412 Posts
                  Thanks... Judging by the time of my last post, and your post I see that you saw my newest mods. My wife decided she wanted purple. I wanted to go with a gradient border on the left & right. I showed her an example and she noticed how it just cut off on the bottom and she did not like that. I explained to make it go all around and be fluid would require a total rewrite of the template and I’m not up for that right now smiley I played with just about everything css last night. Last i checked all my code validates. As for my menu issue with IE6 I’m not too worried because my stats show that only 20% of my visitors use IE6. With the menu broken for them, they only miss out on one page. I have tried wayfinder based menus but they stay above the lightbox effect for some reason.