2 replies [Last post]
dcabero
dcabero's picture
Offline
newbie
Last seen: 7 years 11 weeks ago
Timezone: GMT-4
Joined: 2014-05-10
Posts: 2
Points: 3

Hi guys,

I am just starting with CSS and I am having problem with a

tag in the main div, it inherits for some reason a link behavior, and I simply can't find what is wrong my code.

Any help would be really appreciated.

Here is a link to the code:

http://jsfiddle.net/dcabero/NHghW/94/

helldog2004
helldog2004's picture
Offline
Enthusiast
Netherlands
Last seen: 4 years 51 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2014-03-02
Posts: 205
Points: 239

Well this is your

Well this is your code:

<li><a href="seguridad.hmtl">Seguridad</li>
     <li><a href="educacion.html">Educacion</li>
     <li><a href="trabajo.html">Trabajo</li>
     <li><a href="salud.html">Salud</li>

and here is the corrected code:

<li><a href="seguridad.hmtl">Seguridad</a></li>
     <li><a href="educacion.html">Educacion</a></li>
     <li><a href="trabajo.html">Trabajo</a></li>
     <li><a href="salud.html">Salud</a></li>

As you can see, you never ended the <a href> codes. so everything after the first <a href> is going to be a link. Including your <p>, <H1>, <H2> and more.
Hope this helped!

Check Maximum Webdesign for your online solutions

dcabero
dcabero's picture
Offline
newbie
Last seen: 7 years 11 weeks ago
Timezone: GMT-4
Joined: 2014-05-10
Posts: 2
Points: 3

Ugh, I can't believe I did

Ugh, I can't believe I did not see that closing tag last night.

Thank you very much for your help!