I am using a theme custom built for my site and am just starting to dig into modifying it. I'm sure I'll have many questions over the next few weeks, but this one is one I am hung up on.
I would like to have an image that begins in the upper right hand corner and proceeds to the upper left, then down the left hand side of the page. Placing it on the top is easy enough in the theme.php (I have a seperate file I am including before PN draws it's content), but placing the second piece of the image (that goes behind the left column blocks) is proving difficult.
Does anyone have any suggestions? I suppose I should use Xanthia, but I want to wait until .750 is in it's final release before I move in that direction.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 01:39 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Adding a Background Image to my Theme
-
- Rank: Expert
- Registered: Mar 15, 2003
- Last visit: Oct 21, 2009
- Posts: 1221
The way I do it is have a seperate table for the header and the body.
The body usually ends up being a 2 column table width 100%.
The left TD gets the repeating background image with a fixed width large enough to handle any expansion by the left blocks.
The right TD then gets another table put in it to contain any modules, center blocks, right blocks etc.
--
Zikula Themes -
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 141
For a FIXED background image (the picture stays as is & centered while you scroll up/down....
Code
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 12px; background: #000000 url("http://www.starlessallstars.com/themes/AT-IceCold/images/bg.jpg"); background-repeat: no-repeat; background-position: center; background-attachment: fixed}
You notice my choice of a background color, here it is black that will blend in with the background picture if someone uses more than a 1024 wide screen size
http://www.starlessallstars.com
8) -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
Hi there,
Try this:
Code
<table style="width:100%;border:0px;" cellspacing="0" cellpadding="0">
<tr style="vertical-align:top;">
<td>
In here you would have the image for the left corder
</td>
<td style="width:100%;background-image:url(image.gif);">
here you would have the image that would expand
</td>
<td>
here you would have the right corner
</td>
</tr>
</table>
<table style="width:100%;border:0px;" cellspacing="0" cellpadding="0">
<tr style="vertical-align:top;">
<td>
here you would have the image for the below left hand corner
</td>
<td style="width:100%;">
And here would be your theme
</td>
</tr>
</table>
_____________________________
| left corner | expand image |right corner|
-------------------------------------------------
|below left | theme here |
-------------------------------------------------
Regards
Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment
- Moderated by:
- Support
