the word "sticky"

Discussion in 'vBulletin Discussions' started by kneel, Dec 6, 2009.

  1. kneel

    kneel Regular Member

    can sumone tell me how to make the word "sticky" bold and blue? I know it can be done, i've seen it on another site.

    thanks!
     
  2. MordyT

    MordyT Grand Master

    I am going to guess you are referring to a vB board...
    My guess would be that it is in the stylesheet....
     
  3. kneel

    kneel Regular Member

    uhh...lol..yea...

    its in the threadbit template sumwhere....i just don't know what kinda code to use...
     
  4. FullMetalBabe

    FullMetalBabe Zealot

    HTML:
    <b></b>  
    To make bold?
     
  5. Shelley

    Shelley Regular Member

  6. Tex

    Tex Adept

    I would think you could just go to the phrase manager in the admincp and edit the sticky phrase to something like:

    HTML:
    <b><span style="color: blue">Sticky</span></b>
     
  7. kneel

    kneel Regular Member

    im runnin 374, so ill give it a try later. thanks.
    thanks! will try later
     
  8. Nick

    Nick Regular Member

    That's exactly what I would do. Works flawlessly. :)
     
  9. Demo

    Demo Regular Member

    Or
    HTML:
    <span style="color:blue; font-weight:bold">Sticky</span>
     
  10. combus

    combus Addict

    or a more semantic <strong class="blue"></strong> (and then add .blue{color: blue} to the CSS)?
     
  11. FullMetalBabe

    FullMetalBabe Zealot

    It is a bit better to define a css class, you can change it easier.
     
  12. Tex

    Tex Adept

    ^ Of course all of the above would work, but I suspect it's something he will change only once, so it's not really necessary to go through the trouble to define it in a CSS class.
     
  13. Tex

    Tex Adept

    What's the advantage of this vs. using <b></b>? Just curious, is it more efficient or something else?
     
  14. Nick

    Nick Regular Member

    <b> is a presentational element, basically meaning "make this bold". <strong> is a structural element, meaning "read/render this with strong emphasis," which some browsers then make bold.

    I prefer <strong> over <b> and <em> over <i>. I'm not sure if <b> is deprecated or anything though.

    See: <b> vs. <strong> - <i> vs. <em>
    and: <em> vs.<i> and <strong> vs. <b> - HTML / CSS answers
     
    2 people like this.
  15. combus

    combus Addict

    Yeah, <i>, <b>, <font> and all those old tags that style the page are archaic nowadays. Always try to use a tag that describes what you're trying to show with the content (semantics :heart:).
     
  16. Chani

    Chani Grand Master

    But what if you'd like to display them differently in other styles? ;)
     
  17. kneel

    kneel Regular Member

    so i should replace this?
    $vbphrase[sticky_thread]
    with
    <span style="color:blue; font-weight:bold">Sticky</span>
     
  18. combus

    combus Addict

    I'd suggest you (again) to use <strong class="sticky_color">Sticky</strong> and then add .sticky_color{color: blue} to your CSS. SEs will know that text have some sort of a bit more importance, and by using a CSS class, you can simply modify it later on for any theme you use.

    EDIT: I'm not sure about what $vbphrase[sticky_thread] retrieves, so I'd try what happends with <strong class="sticky_color">$vbphrase[sticky_thread]</strong> (for more language support).
     
  19. FullMetalBabe

    FullMetalBabe Zealot

    Combus, $vbphrase[sticky_thread] is the variable for 'Sticky:'.

    In the phrase manager you could change that to anything. I have it on Pisoga as 'Nebai~' (means sticky in Jap)
     
  20. combus

    combus Addict

    ohh thanks for confirming that :) Then <strong class="sticky_color">$vbphrase[sticky_thread]</strong> should work nicely :D
     

Share This Page