WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Butch on May 04, 2010, 11:19:02 PM
-
Hey Guys -
I have been useing WB for several years now, but I'm hitting a black wall, and can't seem to make it do what I need done this time. I have done this before, so I'm asking for help to make it work -
I have taken a template from the add-ons page and customized it to what I want - here is the website:
http://tylucasfoundation.com/
What I need to do is put this image: http://tylucasfoundation.com/media/tlflogo.gif
in the background of the text field - I don't want it repeated, just once, in the middle of the text field.
How do I do that, and what code would I use?
Thanks
Butch
-
maybe something like this in your css file
input, textarea {
background:url("/media/tlflogo.gif") no-repeat scroll 0 0 transparent;
}
-
Well I tried that and while it does put the image on the page, it does so in the top left hand side, behind the header, and it also messes up the rest of the page.... the text area changes to black, etc.
I really doubt there will be any more pages added, so I could just add it to each page if there is a way to do that??
-
Put this in your stylesheet:
.container {background: url("/media/tlflogo.gif") no-repeat 50% 50%;}
If it's not in the middle and center, try using other values than 50%, or use absolute values in pixels.
-
howdy -
Nope that didn't work either - I put it in there, and even changed it several times but no go.
Butch
-
No, you have 2 errors in your CSS:
div#container {backgond: url (/media/tlflogo.gif) no-repeat 50% 50%;}
should exactly be what I wrote before:
.container {background: url("/media/tlflogo.gif") no-repeat 50% 50%;}
or add it to the styles already present, like so:
div#main div.container {margin-top:20px;padding-bottom:8px;background: url("/media/tlflogo.gif") no-repeat 50% 50%;}
There is no div with ID container in your index.php, so get rid of that line that you have now.
-
ah....got-ya....I'll go try it out!
-
it worked!!!! Thanks so much for your help and time!
-
That's what we're here for :-D
I'm glad it turned out well, it looks good.
-
Thanks! I've got a few minor changes to make to the header, but so far the family likes it!
I was looking for something alittle softer - maybe a light brown with the baby blue, etc....but what it all comes down to is what the client wants.
Thanks again!
Butch