...

View Full Version : I'm having problems with my sidebar.



pineappelle
09-10-2011, 06:21 AM
Ok so i am just trying to make a little sidebar and then buttons to be able to change the color of the background and the sidebar. The only problem is that i cant actually get the sidebar to show up. I used to be able to make little boxes floating around but now i cant seem to get it. i dont know what im doing wrong.

the code for the html is this

<html>
<head>
<link rel="stylesheet" type="text/css" href="file:///C:/Documents%20and%20Settings/Ian/Desktop/sidebar.css">
</head>
<body>

<div class="sidebar">
</div>

</body>
</html>

and the css code is this

div.sidebar {
width: 100px;
height: 400px;
color: red;
}

note these are just saved on my computer and i open them in safari.

sunfighter
09-10-2011, 03:40 PM
color is the color of your text. Add background-color: black; and you'll see the div.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum