Top Left Corner

Locked
Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Apr 2010, 04:41
#1
jenstudio avatar

jenstudio

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

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?
27 Apr 2010, 06:19
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Top Left Corner

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

You can add a div just inside or outside #mainWrapper.
27 Apr 2010, 14:03
#3
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Posts:
1,090
Plugin Contributions:
0

Re: Top Left Corner

gjh42:

/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.
27 Apr 2010, 15:06
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

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.
28 Apr 2010, 13:22
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Posts:
2,400
Plugin Contributions:
0

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
05 May 2010, 07:14
#6
jenstudio avatar

jenstudio

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Top Left Corner

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