Thread: Top Left Corner

Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    15
    Plugin Contributions
    0

    Default Top Left Corner

    I want to have an image in my top left corner of the screen. I've already used up my background image in the body class. So I need to make another div before any header output gets sent but can't find which file to edit? Can anyone help?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Top Left Corner

    /includes/templates/your_template/common/tpl_main_page.php.

    You can add a div just inside or outside #mainWrapper.

  3. #3
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Top Left Corner

    Quote Originally Posted by gjh42 View Post
    /includes/templates/your_template/common/tpl_main_page.php.

    You can add a div just inside or outside #mainWrapper.
    If you want it ABOVE the header you would actually edit includes/templates/YOUR TEMPLATE/common/tpl_header.php

    If you use the way mentioned above you will want to make sure you put your new div in BEFORE the header is loaded. Much easier to put it in the header file directly.
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Top Left Corner

    That's another file where the new div could go... depends on exactly where the "top left corner" is intended. If to the left of a less-than-full-width mainWrapper, then tpl_main_page.php would be appropriate. If above the header, then tpl_header.php would be appropriate.

    Seeing the site and a more detailed description would let us advise the best file location.

  5. #5
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Top Left Corner

    Or you can do it with the existing DIVs but using CSS positioning -- a bit of a black art, but workable. I used absolute positioning to put my logo top-left, and set a large left-margin on all else in the header to push them to the right, and a large top-margin on the top-most sidebox to push them all down leaving room for the logo. You can see it on both sites linked in my sig.

    Rob
    Last edited by rstevenson; 28 Apr 2010 at 02:26 PM.

  6. #6
    Join Date
    Apr 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Top Left Corner

    Yeah thanks guys I was able to do it using
    /includes/templates/your_template/common/tpl_main_page.php

 

 

Similar Threads

  1. ?> in the upper left corner of my site!
    By gth73bg in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 25 Aug 2011, 01:10 PM
  2. My mouse over medium image showing top left corner
    By oavs in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2008, 07:06 PM
  3. How to hide the top left corner's Logo and Tagline?
    By tat1973 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Nov 2007, 07:23 PM
  4. Need to 'float' my logo in the top-left corner
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Feb 2007, 03:09 PM
  5. Odd characters at the top left corner
    By dealbyethan.com in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Aug 2006, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg