Jump to content

Where did I make mistake?


n00blord

Recommended Posts

Whats wrong with this code? Help please!

HTML:<html><head><title>Home</title><link href="style.css" rel="stylesheet" type="text/CSS"></head><body bgcolor="black"><div id="mainblock"><div id="banner"><h1>BANNER</h1></div><div id="button1">button1</div><div id="button2">button2</div><div id="button3">button3</div><div id="button4">button4</div><div id="button5">button5</div><div id="textarea">text</div></div></body></html>CSS:#mainblock {position: relative;height: 700px;width: 650px;margin: auto;background: #FF3300;color: #FF3300}#banner {position: absolute;height: 170px;width: 640px;top: 5pxleft: 5pxbackground: #0066CC;color: #FF0099;text-align: center}#button1 {position: absolute;height: 68px;width: 124px;top: 180pxleft: 5pxbackground: #FFFF00;color: #999999;text-align: center}#button2 {position: absolute;height: 68px;width: 124px;top: 180pxleft: 134pxbackground: #FFFF00;color: #999999;text-align: center}#button3 {position: absolute;height: 68px;width: 124px;top: 180pxleft: 263pxbackground: #FFFF00;color: #999999;text-align: center}#button4 {position: absolute;height: 68px;width: 124px;top: 180pxleft: 392pxbackground: #FFFF00;color: #999999;text-align: center}#button5 {position: absolute;height: 68px;width: 124px;top: 180pxleft: 521pxbackground: #FFFF00;color: #999999;text-align: center}#textarea {position: absolute;height: 442px;width: 640px;top: 253pxleft: 5pxbackground: #99FF33;color: #9966CC}

Link to comment
Share on other sites

Your missing semi-colons off the end of several lines in your css.Add them back in and your page should work properly. But i would do something about the colour scheme. The one you have there is horrendous :):)

Link to comment
Share on other sites

10x man! LoL i would never notice it alone :)! I was just practicing css and i wrote this thing in notebook so I don't care about colors... IT WORKS! WEEEE!EDIT:How can I put text in the middle vertically?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...