the word "sticky"

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

  1. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    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

    Joined:
    Dec 6, 2009
    Messages:
    529
    Likes Received:
    50
    First Name:
    Mordy
    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

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    uhh...lol..yea...

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

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    HTML:
    <b></b>  
    To make bold?
     
  5. Shelley

    Shelley Regular Member

    Joined:
    May 26, 2009
    Messages:
    826
    Likes Received:
    61
  6. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    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

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    im runnin 374, so ill give it a try later. thanks.
    thanks! will try later
     
  8. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    That's exactly what I would do. Works flawlessly. :)
     
  9. Demo

    Demo Regular Member

    Joined:
    Jun 9, 2009
    Messages:
    172
    Likes Received:
    6
    Location:
    Europe
    First Name:
    Demo
    Or
    HTML:
    <span style="color:blue; font-weight:bold">Sticky</span>
     
  10. combus

    combus Addict

    Joined:
    Dec 8, 2009
    Messages:
    70
    Likes Received:
    4
    First Name:
    Jorge
    or a more semantic <strong class="blue"></strong> (and then add .blue{color: blue} to the CSS)?
     
  11. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    It is a bit better to define a css class, you can change it easier.
     
  12. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    ^ 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

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    What's the advantage of this vs. using <b></b>? Just curious, is it more efficient or something else?
     
  14. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    <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

    Joined:
    Dec 8, 2009
    Messages:
    70
    Likes Received:
    4
    First Name:
    Jorge
    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

    Joined:
    Sep 1, 2009
    Messages:
    884
    Likes Received:
    54
    First Name:
    Chani
    But what if you'd like to display them differently in other styles? ;)
     
  17. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    so i should replace this?
    $vbphrase[sticky_thread]
    with
    <span style="color:blue; font-weight:bold">Sticky</span>
     
  18. combus

    combus Addict

    Joined:
    Dec 8, 2009
    Messages:
    70
    Likes Received:
    4
    First Name:
    Jorge
    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

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    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

    Joined:
    Dec 8, 2009
    Messages:
    70
    Likes Received:
    4
    First Name:
    Jorge
    ohh thanks for confirming that :) Then <strong class="sticky_color">$vbphrase[sticky_thread]</strong> should work nicely :D
     

Share This Page