I am very picky and want to create a menu that goes through a page with spaces and divs (well, I have navs and spans since I try to use html5, but this is not necessary, so I simplified my question!), That it comes down to which is basically it.
I have this code:
< html> < head> < title>Test< /title> < style> body * { border: 1px solid black; background-color: #999999; } span { float:left; display: block; width: 33.33%; margin: 5px; } .page { margin: 10px; background-color: #0000ff; } .menu { margin: 5px; background-color: #00ffff; } < /style> < /head> < body> < div class='page'> < div class='menu'> < span>one< /span> < span>two< /span> < span>three< /span> < /div> < /div> < /body> < /html>
And I want to make it so that my spans all fit inside the blue div. perfectly.
I had a table that displayed beautifully, but tried to write my code. Any advice? :)
Thank you very much in advance!
Bean
source share