Aligning Navigational Footer Divs The creation of navigational footers can be a trying job for many not well-versed in the vagaries of HTML coding. I don''t know how many times I've seen this question all over the Internet; "How do I get my site navigation to align itself in the dead center of the page?" It's actually so simple that it almost makes me cringe - especially as I was having a serious problem with this issue only months before. I love to embed navigation into HTML form buttons;
Works well (and, cross-browser from my testing and experience), but most times you'll want to have more than one button and aligned on the same level. It's really harder than it looks. I had a div that looked like;
< form action="#" target="_self">< input type="Submit" value="myvalue" / > < form action="#" target="_self">< input type="Submit" value="myvalue" / > < form action="#" target="_self">< input type="Submit" value="myvalue" / > < form action="#" target="_self">< input type="Submit" value="myvalue" / >
In fact, I had such a hard time with it that I thought it might require some insane, super-geek of a solution and was ready to hunker down for hours of searching and reading when I came across a nugget of simplicity on "HyperlinkCode";
< input type="button" value="myvalue" / >
My result came from a leap of logic that saw me wrapping the button elements with two divs; the outer div with the text-align css property, and the inner div with the display css property. Forcing the input buttons to line up as if they were text objects between the single form element. Works a treat!
Mr Lee Davis is the owner/admin of Promodrone.com, an instant publishing site for news, articles, information, multimedia, and infographic submissions along with exposure to profitable opportunities associated with content creation. Are you a content creator in need of an original way to generate laser-targeted buyer visitor traffic to your product and affiliateship salespages? Info can be found at the salespage. As a Web Developer and Writer with thirty-plus years of experience within both disciplines, Mr. Davis is currently freelancing other MMO-based ideas as well as the attendant eCourse connected to his personal info-product.