inherit
88478
0
Nov 28, 2024 17:05:24 GMT -8
Robyn
22,567
September 2006
millsberryfanrob
|
Post by Robyn on Apr 9, 2011 11:34:04 GMT -8
Check out my website newwebsite.robertcity.comI'm trying to modify the footer a bit. You see the image at the bottom? I'm wanting to somehow get it so that the content above goes 'into' the white 'area' of the image. But the problem I see is that I can't make it have two backgrounds [one for the main image in the center, and one for the bg 'behind' the image], and if I have an image in the center, the content can't go over it anyway. So how might I succeed in doing said task?
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Apr 9, 2011 13:22:08 GMT -8
Adding the red made it work for me in FireFox 4. If you want more than one background for the same div, just add a parent div or a child div that consumes the exact same space and apply the other background to it. In your case you already had a wrapper div that was perfect since it allows the image to span across the full page width, and then the inner div forces the text to only span within the white space of the image.
#body { padding:10px 10px; padding-bottom: 20px; background-image: url("./images/footer-bg.png"); background-position: bottom center; background-repeat: no-repeat; }
|
|
inherit
88478
0
Nov 28, 2024 17:05:24 GMT -8
Robyn
22,567
September 2006
millsberryfanrob
|
Post by Robyn on Apr 9, 2011 13:43:45 GMT -8
Check it again.
How can I have ONE more background added? This one being the background that will be behind the bottom image, which the content is now over?
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Apr 9, 2011 14:31:56 GMT -8
Have you tried adding it to #content? It doesn't have a background yet, but if it's not the right width then you just need to add one more div in there that has the width that you want.
|
|
inherit
88478
0
Nov 28, 2024 17:05:24 GMT -8
Robyn
22,567
September 2006
millsberryfanrob
|
Post by Robyn on Apr 9, 2011 14:42:42 GMT -8
I think I had success!
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Apr 9, 2011 15:14:59 GMT -8
Very nice, it looks good.
|
|
inherit
88478
0
Nov 28, 2024 17:05:24 GMT -8
Robyn
22,567
September 2006
millsberryfanrob
|
Post by Robyn on Apr 9, 2011 15:18:49 GMT -8
Awesome!
Only, see the text at the bottom? Copyright and then the menu links? I'm trying to remember how to create a css rule for the fonts, but I don't think you can make a div from the font tag, can you?
I'm trying to get the copyright text aligned left, the menu text aligned right.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Apr 9, 2011 17:07:41 GMT -8
To get something left and right aligned, you need to use the float property.
Instead of this. <div id="copyright"><div id="cprcontent"><font size="3">Copyright 2011 RobertCity.com</font> <font align="right" size="3">Home - About - My Games - My Videos - Blog - Forum - Contact</font></div></div>
You'd want something like this (not tested). You should also set the font sizes and other attributes within the style tag. The font tag has been deprecated (meaning it's old and is no longer standard).
<div id="copyright"> <div id="cprcontent"> <span style="float: left;">Copyright 2011 RobertCity.com</span> <span style="float: right;">Home - About - My Games - My Videos - Blog - Forum - Contact</span> </div> </div>
|
|
inherit
88478
0
Nov 28, 2024 17:05:24 GMT -8
Robyn
22,567
September 2006
millsberryfanrob
|
Post by Robyn on Apr 10, 2011 10:52:36 GMT -8
Awesomeness!
The only problem I have now is if the content does not go below the page, then the footer images comes up. However, I can compromise that by not having "short" content, or putting "space" below the content.
|
|