Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Ogg
    Ogg is offline
    Junior Member Ogg's Avatar
    Join Date
    Feb 2004
    Posts
    2
    Member #
    4959
    It's my first post here, so hi.

    I'm trying to use a background image for a layer. and I want it to repeat only verticaly. Here is my code:

    Code:
    #c1 {
    	position: absolute;
    	padding: 0px;
    	width: 690px;
    	height: 100%;
    	left: 50%;
    	margin-left: -345px;
    	background: #fff url(resimler/bg.jpg)   top left repeat-y;
    }

    Works good with IE and Opera, but with Mozilla, there are a big gap at the bottom of the page (i think it's height is same with height of background image). Is there a way to solve this problem, or am I doing something wrong?

    Thanks. And sorry for my terrible English.

  2.  

  3. #2
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    Try removing the 'height: 100%;' part, That may be causing your problem. I'm not sure.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  4. #3
    Ogg
    Ogg is offline
    Junior Member Ogg's Avatar
    Join Date
    Feb 2004
    Posts
    2
    Member #
    4959
    Yes, it does. But what if the client area of browser longer than content height. I want bacground image to repeat vertically from top to bottom.

    Thanks.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:17 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com