How do I make a border with css around some elements without specifing an absolute width?

Remove float: left from your labels, add float: left to your div. Menu, and remove the width: 271px from your div.menu.

Remove float: left from your labels, add float: left to your div. Menu, and remove the width: 271px from your div.menu. The reason it breaks now when you remove the width from div.

Menu is because the labels are floated left and not clearing the input above them. Edit: Another option if you want to leave the labels floated left would be to add a clearing rule to the paragraphs within the menu: div. Menu p { clear: both; }.

Div. Menu { border: 1px solid #808080; padding: 1px; float: left; } and Username Password First name Last name.

Float: left is enough. What does the second div do? – mrt181 Dec 4 '09 at 15:30 this works for me only when I take the float:left off of label.

– T Pops Dec 4 '09 at 15:32 @mrt181: when an element is left-floated, it doesn't occupy any space in its container. Therefore, the menu div could break out of your fieldset, pretty much depending on what the rest of the page looks like. I just realized I placed it inside the div in error, though, it should clear it just after it instead.Editing... – David Hedlund Dec 4 '09 at 15:39 @David It would be nice if you explained the "clear fix" instead of just dumping a snippet on here.

– Josh Stodola Dec 4 '09 at 15:45 The clear fix can usually also be avoided by setting overflow: auto on the parent element. – Rudism Dec 4 '09 at 15:58.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions