View Full Version : DIV help!


ForevaLili327
07-19-2003, 02:41 PM
I know I've posted soo many questions about DIVS..but I still don't understand them. I have this layout where I want the bottom part to extend but I don't know the code for it to make it extend can someone tell me please?

http://www.geocities.com/anotherthinker/BEyonce.html

gennykins
07-19-2003, 05:40 PM
Oh I used to be confused about that too! You have to in a paint program cut out a tiny part of the bottom of the picture = about 8 pixels high and make sure it's about as wide as the screen. Then you save that and set it as the background of the page. It may take a few tries to get it right under the image but it works. Sometimes you have to take the little part of the picture and then paste it into a new picture about 1000 pixels wide, just to be on the save side that it will fill up the whole screen when it's the background. Basically you're taking a tiny part of the bottom of the layout so that it'll be the background and look like it's extending.. did that make sense? I'm bad at explaining things >_<

MaGiCSuN
07-19-2003, 05:41 PM
i'm not really sure what you mean but if you want the lines to go til the bottom of the page, you need to make a background of it.

so you open your image in your graphic program, you select the lines part (make sure you do it properly so that it can repeat as background, you need to select between the black pieces in the middle of the white) and you copy it with ctrl + c. Then you press ctrl+v and it should become a new image. save it and put it as a background on your page. Make sure that the background is as width as the image is on the screen. To get this you can also take a screenshot of you layout and cut the part you need of it out of that image. In that way you allready have teh loads of white on the left side in the image.

Love,
Mirna

ForevaLili327
07-19-2003, 06:47 PM
THANK SO MUCH! but I have another question Can you center the background? because I want to center everything but the background won't go to the center it just stays on the left.

MaGiCSuN
07-19-2003, 06:57 PM
<style type="text/css">
<!--
body
{ background-image: url(urlofimagehere.gif);
background-repeat: repeat;
background-position: center center;
-->
</style>

try that above. Replace the bold part with the url of the background image, and place the code above between <head> and </head>

Love,
Mirna

ForevaLili327
07-20-2003, 11:07 AM
Thanks but is it just me or does it take a REALLY long time to get the background lined up with the layout..lol I'm having a lot of trouble thanks for the help!

ForevaLili327
07-20-2003, 10:44 PM
Sorry for the double post but I just have a question at this link:

http://www.geocities.com/anotherthinker/Beyonce.html (This one is different from the top one)

If you look at it the background isn't exactly lined up with the layout. But once you refresh it..It is lined up..How do I fix that?