Welcome Guest, Not a member yet? Register   Sign In
Codeigniter CSS problem
#1

[eluser]javigarrido[/eluser]
I am having a very strange problem, when i use css :hover in a td, when te page is simple a .html, it works fine (navigation bar, try http://www.nutricioncelular.es/REGISTRATE.html )

when i use it on a codeigniter view (code is the same, just copied perfectly) (try http://www.nutricioncelular.es/index.php) the red color on td background doesnt work. The code is exactly the same, and the call to the view is the simplest load view with no parameter , no data

have you eve get this kind of trouble? thx in advance.
#2

[eluser]smilie[/eluser]
Most probably is your CSS somewhere overruled when you use CI.

Try to debug it with Firebug.

Cheers,
Smilie
#3

[eluser]danmontgomery[/eluser]
Both turn red for me on hover
#4

[eluser]Christophe28[/eluser]
You shouldn't create a list with a table. This is a little old school :-)

Check out the following code:
Code:
<html>

<head>
<style>

ul {
    
}

li {
    float: left;
    list-style: none;
    padding: 5px 10px;
    font-size: 11px;
    
}

li:hover {
    cursor: pointer;
    background-color: #990000;
    color: #FFFFFF;
}

</style>
</head>

<body>
<ul>
    <li>INCA</li>
    <li>NOTICIAS</li>
    <li>ARTÍCULOS</li>
    <li>CATÁLOGO</li>
    <li>FORMACIÓN</li>
    <li>COLABORADORES</li>
    <li>CONTACTO</li>
</ul>
&lt;/body&gt;
&lt;/html&gt;

It has almost the same effect but it is much cleaner, and when a user hovers the list-item, the color of the text is set immediately to white, instead of the user has to hover the text itself for it to turn white.

Christophe




Theme © iAndrew 2016 - Forum software by © MyBB