I'm a beginner in writing sites in html/css and I've run into a problem.
I posisioned my div's on my site, but when I scale down the broser, 1 div ( the showcase) slides of the screen.
Here's a picture to understand my problem:

And when I scale down the browser:

And here is the code that I used:
Html:
<html> <head> <title>Welcome at SlackBoom.com ! - The Best Place to Play Free Online Flash Games !</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <center> <div id"container"> <div id="header">This is a header</div> <div id="showcase">This is a showcase</div> <div id="poll">This is a poll</div> <div id="footer">This is a footer</div> </div> </center> </body> </html>
and the css code:
#container {
width: 900px;
}
#header {
background-color: red;
width:900px;
height: 100px;
}
#showcase {
background-color: green;
position:relative;
right:150px;
width: 600px;
height: 100px;
}
#poll {
background-color: blue;
position:relative;
left:300px;
bottom:100px;
width: 300px;
height: 100px;
}
#footer {
background-color: purple;
position: relative;
bottom: 100px;
width:900px;
height: 100px;
clear:both;
}
thanks

New Topic/Question
Reply
MultiQuote









|