Jump to content

CSS photo problem.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
k4m1k4z1

k4m1k4z1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
Hey forum! I watched a video on CSS and i was looking farward to putting the skills i learned into action, so i typed out the code, and it didnt work. I have made some basic websites before and i usually was able to iron out the problems, but this i absolutely cannot find out for the life of me. If you guys can take a look at my code and watch the video and tell me what i did wrong, that would really help.
Thanks guys.


Code:
#body-container {width: 700px;

				margin-left: auto; margin-right: auto; 				

}

#body-header {position: relative; 

			 top: 0px;

			 height: 72px; 

			 background-image: url ('capture.png') ; background-repeat: no-repeat; 

} 			 

}

#body-content {position: relative; 

			  background-image: url('capture.png'); background-repeat:repeat-y; 

}			  			  

}

#body-footer {position: relative;

			height:323px;

			background-image: url ('capture.png'); background-repeat: no-repeat; 


That was my externalstyle sheet, not much too it, keeping it basic for this expirement.

Video:
YouTube - WeArePurpose's Channel

#2
Zakk

Zakk

    Newbie

  • Members
  • Pip
  • 4 posts
Two closing braces may be your problem (see below), dare i ask are those IDs in the html? Like... <div id="body-header"> ..... </div>.

#body-header {position: relative; 
			 top: 0px;
			 height: 72px; 
			 background-image: url ('capture.png') ; background-repeat: no-repeat; 
} 			 
[B][SIZE="5"]}[/SIZE][/B]
#body-content {position: relative; 
			  background-image: url('capture.png'); background-repeat:repeat-y; 
}			  			  
[B][SIZE="5"]}[/SIZE][/B]


#3
k4m1k4z1

k4m1k4z1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
Alright thanks, and yes those are "id"s. If you are having a problem with that, i have posted a thread questioning them, and there were lots of good answers. Check it out if you need help.