Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Style

  1. #1
    New Coder
    Join Date
    May 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Style

    I would like to find a way to set the visibility style to hidden to all html objects having the same class name.
    Is it possible?

    thanks in advance.
    Lelebug

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts

    That's what css is for

    <style>
    .hidden {display:none}
    </style>

    <input class="hidden" type="text">
    <p class="hidden">Hidden</p>
    ...
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New Coder
    Join Date
    May 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I know that, but i want to set the objects to hidden only if user disabled it on the database.

    Thanks

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    so you must be using a server-side language...
    just have a server-side variable that will contain the corresponding value from db

    <%
    'set strCSSDisplay to none or empty depending on the value retrieved from db
    %>
    <style>
    .dynamic {display:<%=strCSSDisplay%>}
    </style>

    <input class="dynamic" type="text">
    <p class="dynamic">Hidden or not</p>
    Last edited by glenngv; 09-27-2003 at 03:46 PM.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    New Coder
    Join Date
    May 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you very much glenngv, it's what I looking for!!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •