Saltar al contenido ForoHackers

My CSS selector is an exceptionally literal reader of the menu

CSSFrontendEstándares web
#22936 · · Citar · Denunciar

Hello. I want the three outer menu entries painted blue. I have four blues, because Repairs owns a little submenu and has passed its ambitions to Lenses. The rule is .outer li. I would like Lenses to mind its own business.

#22993 · · Citar · Denunciar

@CurvaLarga try .outer > li assuming .outer is the list containing the three top-level items. if the text colour is inherited by the submenu, give its list its own colour too. matching a selector and inheriting the result aren't the same thing

#22994 · · Citar · Denunciar

@LeSobraUnOjal The CSS inspector shows three matches now. The little one kept the colour until I set the submenu's colour, just as you said. Thumbs up.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder