September 5, 201214 yr Hello I have included a html file of a website I am working on, I have not used any generated code it is just done by hand. The problem is that when I try to position a new DIV under the header DIV with navigation in it will not let me add a margin to it. I believe this is something to do with the the float attribute and would like some help. To me the code looks clean but maybe it isn't.noiseshed.html
September 6, 201214 yr Can you post another html file with the code that's not functioning the way you want it to? This way, we can have a better idea of what you're trying to accomplish. Having said that, if you're attempting to add a div as a child of the header div, under the logo, then you'd have to add the clear property to that new navigation element so that it will be visible under your floated image. example: .nav_div{ clear: both; } Edited September 6, 201214 yr by Pete Prosper
September 6, 201214 yr Author Here is the one with the problem in it, I have navigation div with margin_top and it wont work. I have also tried putting margin_bottom on the header div. I want there to be a margin between navigation and header. noiseshed.html Edited September 6, 201214 yr by stansterday
September 6, 201214 yr Well you kind of misspelled "margin-top". You spelled it as "margin_top". A hyphen is used, not an underscore. Fixing that should get rid of your issue Edited September 6, 201214 yr by Pete Prosper
Create an account or sign in to comment