twilitegxa Posted June 29, 2009 Share Posted June 29, 2009 I can't figure out how to get my border at the top of the bottom navigation bar. I still want the bottom navigation to flow with the page, so that if the content increases, the navigation moves appropriately. Here is the link: http://webdesignsbyliz.com/new/creationform.php Can anyone help me out here? I tried adjusting the margin, but it seems like that would be static, which is not what I want. I want the navigation to be able to adjust as the content grows. Quote Link to comment Share on other sites More sharing options...
haku Posted June 30, 2009 Share Posted June 30, 2009 I don't see a border on your bottom navigation. Quote Link to comment Share on other sites More sharing options...
SuperBlue Posted June 30, 2009 Share Posted June 30, 2009 I can't figure out how to get my border at the top of the bottom navigation bar. I still want the bottom navigation to flow with the page, so that if the content increases, the navigation moves appropriately. Here is the link: http://webdesignsbyliz.com/new/creationform.php Can anyone help me out here? I tried adjusting the margin, but it seems like that would be static, which is not what I want. I want the navigation to be able to adjust as the content grows. I'm sorry to say, that your site is completely invalid, the source is so much of a mess, that i find it amazing my browser didn't crash when rendering it. I would however still like to help you solve the problem. You have multiple head sections, and you have elements placed on locations in the source, where they ain't allowed. You can't have anything before the html element, aside from the doctype declaration, which should always be located on the first line. This will ensure that browsers render your page in "standards" mode, and as such you avoid most rendering problems in current browsers. I recommend that you ditch your current page, and write it over from scratch. You can use my below example as a starting-point, a html page generally looks like below. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <title>Navigation Menu Example</title> <style type="text/css"> </style> </head> <body> <h1>Navigation Menu Example</h1> <p>Content</p> </body> </html> Another advice i would give you, is to avoid using JavaScript menus, it may look fancy and all, but it rarely beats using a nicly styled html-list. You should also make sure to nest, and close all your elements correctly, you both have misplaced elements, as well as overlapping tags. To avoid this in the future, be sure to validate your pages using the free w3c validator, found at http://validator.w3.org/ Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 1, 2009 Author Share Posted July 1, 2009 One of the things I want to do is have a menu that opens up another menu when you click the option, as I have already with the JavaScript menu. What other way can I accomplish this? I was unaware that my php session could not be first. I learned this session coding from a tutorial book and that was how it was taught in the book. Anyway, I validated my code now. Please take another look, and let me know what I can do. Quote Link to comment Share on other sites More sharing options...
Hybride Posted July 1, 2009 Share Posted July 1, 2009 Why are you ending your body and html tags before your Step 2? Remove those. And what's this <address> tag you keep putting in? You can do your menu in CSS, using display:block. Quote Link to comment Share on other sites More sharing options...
haku Posted July 1, 2009 Share Posted July 1, 2009 You can have php before the opening doctype and HTML tag, but make sure there are no spaces or carriage returns (enter key) before the opening php tag, and between the closing php tag and the doctype. Quote Link to comment Share on other sites More sharing options...
haku Posted July 1, 2009 Share Posted July 1, 2009 And what's this <address> tag you keep putting in? That would be the <address> tag. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 1, 2009 Author Share Posted July 1, 2009 Is there something wrong with using the address tag? Quote Link to comment Share on other sites More sharing options...
haku Posted July 1, 2009 Share Posted July 1, 2009 Not at all. I use it quite regularly myself. I think he just didn't know what it was. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 1, 2009 Author Share Posted July 1, 2009 Also, I noticed when I view the source code, it doesn't show, but I am using several php includes, such as in the mainnav, topnav, and bottomnav. It looks like there's a lot more code on this page than I see on my end since I have those includes on separate pages. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 1, 2009 Author Share Posted July 1, 2009 My top border on my bottomnav is still not showing up the way I want it though. I must have something coded wrong, but I still can't figure out what it is. Any ideas? Quote Link to comment Share on other sites More sharing options...
departedmind Posted July 1, 2009 Share Posted July 1, 2009 Adding clear:both; to your #bottomnav will show a yellow border at the top. Firebug is great Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 1, 2009 Author Share Posted July 1, 2009 Thank you so much! I had this figured out before, but I lost all my files and was forced to redo everything. Thanks for all the help you guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.