ok, here's what I'm trying to do. I want to put an image as my background, but I just want it to show up in the upper left. The image is like 400x400. I don't want it to repeat, and I want it to be behind everything on the page. I was thinking DHTML is probably the way to do it, but I don't know DHTML yet. Is this possible, and if so, could someone give me an example of a little bit of code that might do this?
Thanks in advance,
Vinny
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 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
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
Theme background question
-
- Rank: Expert
- Registered: Mar 15, 2003
- Last visit: Oct 21, 2009
- Posts: 1221
Edit style.css and styleNN.css and on our body tag do the following
body{ background-image: URL(../images/b1.gif); background-repeat: no-repeat; background-position: left top}
--
Zikula Themes -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
body{ background: URL(../images/b1.gif) no-repeat left top; }
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
warrick
Me thinks Lobos is a perfectionist :)
LOL if possible it is good to cut down on HTML wherever possible - this is an easy way to cut down on CSS size... rember it does have to be loaded, just like images, etc. Imagine 300 lines of such code the saving in filesize could be quite resonable to say the least!
My obsession with this cutting of file size comes from my 56k dialup days when 10kb meant 2 seconds :(
It is also best to put all the HTML tag attributes as CSS elements and then put them in an external stylesheet - this means the sheet only needs to be loaded once and is then cached thus giving a substantial saving in load time.
This all doesn't really matter if you have broadband, but is a good idea if you have pity on the poor unfortunate masses that still use 56k dialup...
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment
- Moderated by:
- Support
