CSS background repeat and position issue

Discussion in 'Software' started by darkhorizon, Apr 9, 2007.

  1. darkhorizon

    darkhorizon Private First Class

    Hi,

    I am having trouble with a block of css on my site. I have a div set like this:

    Code:
    		.content {
    		position:relative;
    		background-image:url('layout_05.jpg');
    		background-repeat:repeat;
    		background-position:0px 317px;
    		color:#FFFFFF;
    		float:left;
    		width:100%;
    		margin-top:50px;
    		}
    
    the background position tells it to start 317px down the page, but I need this image to repeat, and with the background-repeat tag, it overwrites the entire div, instead of starting 317px down, is there a way to stop it from doing this?
     
  2. MutD

    MutD Specialist

    Not sure if this will work but its worth a try, Put the repeat after the 317px. Like this:

    Code:
    		.content {
    		position:relative;
    		background-image:url('layout_05.jpg');
    		background-position:0px 317px;
    		background-repeat:repeat;
    		color:#FFFFFF;
    		float:left;
    		width:100%;
    		margin-top:50px;
    		}
     
  3. darkhorizon

    darkhorizon Private First Class

    no it doesnt work... but thanks for trying
     
  4. gimpster123

    gimpster123 Bring out the Gimp.

    im not sure exactly what your trying to do- could you make the section you want backgrounded a separate div?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds