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

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

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

<div class="sidebar">


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.

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