Div refusing to show up...

NBK*Twitch

Seasoned Veteran
Joined
Mar 5, 2009
Messages
2,969
Reaction score
8
FP$
86
Okay I am making a simple web template for later on. I am almost done,but one of my divs refuses to show...

Here is the html -

Code:
<body>
<div id="container">
<div id="header"> </div>
<div id="navbar"> </div>
<div id="navbar2" float="left">
<h3>Sidebar items</h3><br />

<ul>

<li><a href="#">sidebar item</a></li>

<li><a href="#">sidebar item</a></li>

<li><a href="#">sidebar item</a></li>

<li><a href="#">sidebar item</a></li>

<li><a href="#">sidebar item</a></li>

</ul>
</div>
<div id="something">testestesttestest

</div>
</div>
</body>


The div in question is the id something.

Here is the css -

Code:
#something {
   border: 1px black solid;
   color: #000000;
   display: inline;
   padding-left: 10px;
   padding-right: 0px;
   padding-top: 1px;
   padding-bottom: 0px;
   float: right;
   height: 100%;
   width: 800px;
}
 
Hey

I noticed this...

Code:
<div id="navbar2" float="left">

Why did you not just put "float="left"" in the CSS for "Navbar2"?

Cheers!
 
Damien said:
Hey

I noticed this...

Code:
<div id="navbar2" float="left">

Why did you not just put "float="left"" in the CSS for "Navbar2"?

Cheers!
I did it to see if it would work. I have it now moved to the css.

The code is alot more clean now. The guys at codingforums showed me where I made mistakes.
 
Back
Top Bottom