Web Analytics Made Easy -
StatCounter I'm having problems with my sidebar. - CodingForum

Announcement

Collapse
No announcement yet.

I'm having problems with my sidebar.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I'm having problems with my sidebar.

    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
    Code:
    <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
    Code:
    div.sidebar {
    	width: 100px;
    	height: 400px;
    	color: red;
    }
    note these are just saved on my computer and i open them in safari.

  • #2
    color is the color of your text. Add background-color: black; and you'll see the div.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎