Announcement

Collapse
No announcement yet.

Actinic Templates not centred?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Actinic Templates not centred?

    I'm trying to bring a very old version 7 site up to date a bit using css for the layouts. I'm using a container <div> with a margin-left and margin-right of 'auto'...

    In my non-Actinic pages, the entire site is centred... but in the Actinic templates (and all product pages) the site left aligns in Internet Explorer (looks fine in Firefox)

    Heres the css for the container div:

    Code:
    #wrapper {
    	width: 790px;
    	margin-top: 0px;
    	margin-right: auto;
    	margin-bottom: 0px;
    	margin-left: auto;
    }

    #2
    Do you have a URL to see it?

    Comment


      #3
      Not a lot wrong with that, although it is better better written as:

      #wrapper {
      width: 790px;
      margin: 0px auto;
      }

      In the absence of an ever present URL per usual i'll take a guess at you having defined an ID in the CSS, but defined it as a class in the code.

      Comment


        #4
        Then you'd be wrong in your assumption! It IS defined as an ID in the code...

        Here are the urls:

        the homepage (not an Actinic template page):
        http://www.countyindustrial.co.uk/

        and an Actinic template driven page:
        http://www.countyindustrial.co.uk/acatalog/promo1.htm

        Comment


          #5
          For starters you have the same stylesheet defined twice in the head area and you have an empty actinic stylesheet reference also. Decide which one you wish to work with and delete the other.

          Comment


            #6
            Thanks - I've removed the double-up on the stylesheet... but what do you mean by:

            you have an empty actinic stylesheet reference also
            If you're talking about the actinic stylesheet - it was just easier to leave the standard actinic stylesheet in place and copy across the stylesheet used on the non-actinic pages. I can't see any problem with referencing two stylesheets - unless this isn't what you mean??

            Comment


              #7
              I have no issue with you pointing to 2 or more css stylesheets, i do it myself, if you firebug the site, you'll see that the actinic.css file is empty. Given that this file is usually filled up with around 1200 lines of the greatest css you could have ever seen written, i'd say you have an issue. Can't see any reason why not to do the home page in actinic also.

              Comment


                #8
                The actinic.css file isn't empty? I don't know why firebug would be showing it as empty? You can view it here http://www.countyindustrial.co.uk/acatalog/actinic.css and its clearly not empty!

                Comment


                  #9
                  I've changed the way the template files call the stylesheet - but they were originally exactly how the templates started life... so nothing to do with me. If you view in firebug you can now see that there is content in the actinic.css stylesheet.

                  None of these issues have corrected the original problem...??

                  Comment


                    #10
                    I can't see anything glaringly obvious, there's quite a few things that you do, that i do not though, so hard for me to see past those as reasons for this. Images at 100% width as spacers would be a prime example, maybe your form margins at the top are doing some sort of wrong inheritance. It's hard to say is the reality, it doesn't look like anything obvious. It may be something simple like an unclosed tag causing random results.

                    Comment


                      #11
                      Fixed it

                      For anyone reading this - it turned out to be as simple as no doctype being specified... but like I mentioned before, I haven't changed anything other than the content/layout in the templates, so this is how Actinic provided them. Obviously back then Actinic templates weren't bothered about doctypes!

                      Comment

                      Working...
                      X