2 Replies Latest reply on Mar 15, 2012 11:20 AM by mikeavery333123

    Every text is a hyperlink!

    mikeavery333123

      For some reason, after starting to build my first website I can't figure out why every thing I type is a hyperlink. Here is the code that I have. I cannot figure out why no matter how I insert text or how I format it, it's always light blue and underlined. Someone please help me! I would really appreciate it, because I've been trying to figure it out for over two hours.

      HTML:

       

      <!DOCTYPE html>

      <html lang="eng">

      <head>

                          <meta charset="utf-8" />

                          <title>Title</title>

                          <link rel="stylesheet" href="../Styles/Styles.css" type="text/css" />

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

                </head>

       

       

      <body>

       

      <header>

      <div id="main_logo">

              <img src="../Images...png"

                          width="200"

                          height="120"

                          alt="logo">

              </section>

      </header> 

      <nav>

                   <nav id="nav_center">

            <ul>

                         <li><a href="#">Home</li>

                <li><a href="#">Profile</li>

                <li><a href="#">Businesses</li>

                <li><a href="#">Search</li>

                <li><a href="#">About</li>

                <li><a href="#">Help</li>

            </ul>

        </nav>

      </nav>

      <div id="wrapper">

      <section id="content">

         

                      <div id="Regular_Text">

                  <p>

                  <p>Why is this light BLUE!!!!</p>

                  </p>

          </div>

        

      </section>

                <section id="rightside">

          </section>

      </div>

      </body>

      </html>

       

      and the .css:

       

      * {

                margin:0;

                padding:0;

       

      }

       

       

      header {

                width:100%;

                height:110px;

                background-color:#6a1f1e;

                border-bottom:1px solid black;

       

      }

       

       

      nav{

                width:100%;

                height:33px;

                background-image:url(../Images/JPG-PNG%20Files/Rollover_Bar.jpg);

                background-repeat:repeat-x;

       

      }

      #nav_center {

                width:900px;

                margin-left:auto;

                margin-right:auto;

      }

      nav ul {

                list-style:none;

      }

      nav a {

                display:inline;

                float:left;

                text-decoration:none;

                color:#fff;

                font-family:"Times New Roman", Times, serif;

                font-weight:bold;

                padding-left:18px;

                padding-right:18px;

                line-height:33px;

       

      }

      nav a:hover{

                background-image:url(../Images/JPG-PNG%20Files/Rollover_Bar_Inv.jpg);

                height:33px;

      }

       

       

      /* WRAPPER */

      #wrapper{

                width:900px;

                height:600px;

                background-color:#eee;

                margin-left:auto;

                margin-right:auto;

                border-left:1px solid black;

                border-right:1px solid black;

       

      }

       

       

      #content {

                width:600px;

                height:100%;

                float:left;

                background-color:#CCC;

       

      }

       

       

      #rightside {

                width:280px;

                height:100%;

                float:right;

                background-color:#C8C8C8;

       

                }

       

      /* MAIN LOGO */

      #main_logo {

                margin-left:25px;

                }

        • 1. Re: Every text is a hyperlink!
          John Waller Adobe Community Professional & MVP

                <ul>

                             <li><a href="#">Home</li>

                    <li><a href="#">Profile</li>

                    <li><a href="#">Businesses</li>

                    <li><a href="#">Search</li>

                    <li><a href="#">About</li>

                    <li><a href="#">Help</li>

                </ul>

           

          Are you coding this manually by hand?

           

          None of the anchors are closed (and all subsequent text on the page will be treated as a part of the same navbar link) and Dreamweaver does not write code like that.

           

          Should be

           

          <ul> 

                    <li><a href="#">Home</a></li>

                    <li><a href="#">Profile</a></li>

                    <li><a href="#">Businesses</a></li>

                    <li><a href="#">Search</a></li>

                    <li><a href="#">About</a></li>

                    <li><a href="#">Help</a></li>

                </ul>

           

          You have other unbalanced tags there too e.g. </section>

           

          Suggest you upload your page to the web and validate your code

          http://validator.w3.org/

          • 2. Re: Every text is a hyperlink!
            mikeavery333123 Level 1

            Thank you very much, yeah I'm a bit new to this, thank you for your help.