September 15, 201214 yr I've got myself a nice green nav bar for a webpage im building. However there's a DIV on the page in green that id like this nav bar to fit in... The thing is i cant same to get it to budge at all, even with position fixed... id like it to sit in the DIV ive made thats coloured green.. so i can then move it left right or centre as i need it... using padding thanks for looking... http://connordesign.comyr.com/build/index.html
September 16, 201214 yr You seem to have pretty much achieved what I've been trying to do for the last couple of days, namely you have a nested horizontal over a sliding banner. Nice one! As for your problem are you on about centering it? These links may be of some use to you. The first few are for Spry ( i don't know whether you want to go that way but good heads up) and a neat menu. Hope some of this will help. http://foundationphp.com/tutorials/sprymenu/customize1.php http://library.creativecow.net/articles/williams_richard/spry_menu_explained.php http://csswizardry.com/demos/centred-nav/dropdown.html
September 26, 201214 yr .navbar { float: left; <-- Remove height: 27px; margin: 0 auto; width: 680px; margin-top:20px; } After making these changes your menu in center of the screen. You may change width if you decrease padding/margin from left side. Hopefully, it will help you. Please reply if you have any difficulties. Edited September 26, 201214 yr by Hem
Create an account or sign in to comment