Jump to content

Website Menu


Recommended Posts

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>KyleKJune</title><link rel="stylesheet" type="text/css"href="style.css" /></head><body><img src="banner.gif"><table align="top" border="0" id="menubar"><tr><td id="menu" ><a href="" id="textwhite">Home</a></td><td id="menu" ><a href="" id="textwhite">Contact</a></td><td id="menu" ><a href="" id="textwhite">search</a></td><td id="menu" ><a href="" id="textwhite">other</a></td><td id="menublank" ></td></tr><p>bla bla</p></body></html>
the paragraph is showing above the table.i want the table to be at the top of my page below the banner. my banner is already at the top but when i add stuff to body the table moves down.how do i make the table stay below the bannermy css file is below.
#menu{ background-color : Blue;}#menublank{ background-color : Blue; width : 100%;}#textwhite{ color:white; font-size : xx-large; text-decoration : none;}#menubar{ background-color : red; }
what can i do to fix my problem?i just started making my website today and this is all i got so far. i cant find out how to make banner and table stay at the top though.
Link to comment
Share on other sites

Your table needs a closing tag, </table> . Without it, the browser is trying to understand a <p> element in the context of a table, but not inside a <tr>, and that doesn't make sense.
thank you for your help. i didn't notice that i didn't have a table end.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...