PDA

View Full Version : Scroll Bar


indianleo
12-22-2006, 12:50 PM
Hi Friends

I had inserted 1 image in bg and the dimension of that image is 1024X768 and my table in which the content very long which exceed 768 and the bg image gets replicated so now I want that content should be in 1024X768 and the table should scroll

gmcrone
12-22-2006, 03:03 PM
Hi Friends

I had inserted 1 image in bg and the dimension of that image is 1024X768 and my table in which the content very long which exceed 768 and the bg image gets replicated so now I want that content should be in 1024X768 and the table should scroll

Insert this code into your page or CSS style sheet:
body {
background-color: #FFFFFF;
background-image: url(http://www.mysite.com/pagebg.jpg);
background-attachment: fixed;
}

This way the background is static and does not scroll.

Mike...

domedia
12-22-2006, 04:43 PM
a simple background-repeat: no-repeat, would do as well if you want the background to scroll, but not repeat.

indianleo
12-27-2006, 05:19 AM
Thanks for replying and solving the problem