Be a Supporter!

Hey uhh a bit of a CSS help?

  • 368 Views
  • 2 Replies
New Topic Respond to this Topic
StalkerGuy
StalkerGuy
  • Member since: Jul. 18, 2010
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Hey uhh a bit of a CSS help? 2012-04-22 08:32:52 Reply

I'd like to make a top image, a center image and a bottom image as backgrounds, just like how the newgrounds background is styled. The top image would be at the top of the page (no repeat) and the bottom image would neither but the center image would be between these two and repeat until you get to the top or bottom of the page. Does anyone know how to do that? Help would be appreciated.


fu

smulse
smulse
  • Member since: Mar. 24, 2005
  • Offline.
Forum Stats
Member
Level 31
Blank Slate
Response to Hey uhh a bit of a CSS help? 2012-04-22 18:19:22 Reply

<head>
<style type="text/css">
#top { height: 200px; background: url("1.gif") no-repeat; }
#middle { height: 1000px; background: url("2.gif") repeat; }
#bottom { height: 200px; background: url("3.gif") no-repeat; }
</style>
</head>

<body>
<div id="top"></div>
<div id="middle"></div>
<div id="bottom"></div>
</body>

??


BBS Signature
blank0000
blank0000
  • Member since: Jan. 29, 2006
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Hey uhh a bit of a CSS help? 2012-04-24 16:25:50 Reply

I suggest you look at tutorials from either

thenewboston.com

OR
w3schools.com

both sites are great for learning basics of website dev.


BBS Signature