La verdadera !importancia

5/Jun/2007 3214

CSS significa Hojas de Estilo en Cascada. Con cascada, nos referimos que el browser lee esta hoja de estilos en orden descendente (haciendo analogía, una cascada cae de arriba hacia abajo). Así, en el caso de tener dos estilos similares definidos, el que venga en último lugar, o más abajo (orden descendente) tendrá más relevancia. O sea:

h1 { font-size: 22px; }
h1 { font-size: 48px; }

Ver ejemplo

En este ejemplo, tenemos definido en nuestra hoja de estilos para h1 dos tamaños diferentes, pero se mostrará finalmente el tamaño de 48px, ya que tiene más peso que el primero (lo sobreescribe si refieren pensar así).

Ahora, a través de una simple regla, es posible darle más relevancia a determinadas propiedades sobre todas las otras. Con !important, te aseguras que determinada propiedad sea aplicada sobre todas las otras. Utilizando el ejemplo anterior, tendremos el h1 de tamaño 22px:

h1 { font-size: 22px!important; }
h1 { font-size: 48px; }

Ver ejemplo

En hojas de estilos muy grandes, suele pasar que uno no se da cuenta y se provocan conflictos entre estilos. Con esta regla, podremos darle relevancia a la que nos interesa.

Links:

Comentarios

  1. cheap taxi nice airport [#]

    It’s fantastic that you are getting ideas from this article as well
    as from our argument made at this place.

    Feel free to visit my blog post; cheap taxi nice airport

  2. Slot777 Online [#]

    If you are going for best contents like I do, only pay a visit this web page every day since it provides feature contents,
    thanks

  3. Cubeetle [#]

    each time i used to read smaller posts which also clear their
    motive, and that is also happening with this post which I am reading now.

  4. ivermectin 12 mg [#]

    Accustomed Dope Fro this outcome
    https://ivermectinstrom.com ivermectin for humans pills 12 mg
    https://ivermectinstrom.com ivermectin for humans pills 12 mg
    https://stromectolivermect.com stromectol
    https://ivermectinstrom.com stromectol
    https://ivermectinst.com stromectol

  5. rampokqq [#]

    My programmer is trying to convince me to move to
    .net from PHP. I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about
    a year and am worried about switching to another platform.
    I have heard excellent things about blogengine.net. Is there a way I can import all my wordpress content into it?
    Any help would be really appreciated!

  6. 강서오피 [#]

    What i don’t understood is if truth be told how
    you’re no longer really much more smartly-favored than you might be now.
    You’re so intelligent. You already know thus considerably relating to this topic, produced me individually believe it from
    numerous various angles. Its like men and women are not involved unless it is
    something to do with Girl gaga! Your personal stuffs nice.
    All the time deal with it up!

  7. men supplement [#]

    Hello are using WordPress for your blog platform?
    I’m new to the bblog world but I’m trying too get started and create my own.Do
    yoou require any html coding expertise to
    make your own blog? Any help wiuld be greatly appreciated!

  8. ενοικίαση αυτοκινήτου ζάκυνθος [#]

    After I initially commented I appear to have clicked on the -Notify me
    when new comments are added- checkbox and now each time a comment is added I
    receive 4 emails with the exact same comment.
    Is there a way you are able to remove me from that service?
    Many thanks!

  9. indian bhabhi porn xxx [#]

    Thanks for your marvelous posting! I really enjoyed reading it,
    you are a great author. I will make sure to bookmark
    your blog and will come back down the road. I want to encourage one to continue your great
    job, have a nice weekend!

  10. adultfrienedfinder app [#]

    I’m extremely pleased to discover this web site.

    I need to to thank you for ones time due to this fantastic read!!
    I definitely savored every bit of it and I have you bookmarked
    to check out new information in your web site.

  11. evaluarewellness.ro [#]

    you are truly a just right webmaster. The website loading velocity is amazing.
    It sort of feels that you are doing any
    distinctive trick. Furthermore, The contents are masterwork.
    you have done a great job in this matter!

    Look at my web site: Tricou de fitness pentru femei Nike –
    (evaluarewellness.ro)

  12. cheap mlb jerseys free shipping [#]

    Undeniably believe that which you stated. Your favorite reason appeared to
    be on the net the simplest thing to be aware of. I say to
    you, I certainly get irked while people
    consider worries that they just don’t know about. You managed to hit
    the nail upon the top and defined out the whole thing without having
    side-effects , people could take a signal. Will likely be back to get more.
    Thankscheap mlb jerseys free shippinghttps://uniform-wiki.win/index.php?title=Must_not_certain_really_pan_appearance_event_-_consecrate_re_4194123332&oldid=424308https://uniform-wiki.win/index.php?title=National_football_league_tremendous_can_ability_Mismatches_9694123521&oldid=424344

CSSLab