Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

How to detect html element visibility with only CSS?

I want to check weather html element is visible first then want to apply css for html element div in following example,

<div style="vertical-align: top">
            <div class="row initial-hidden">
                <label>Name: </label>
                <asp:TextBox ID="TextBox1" runat="server" />
            </div>
            <div class="row initial-hidden">
                <label>Price: </label>
                <asp:TextBox ID="txtPrice" runat="server" />
            </div>
        </div

Can I apply style for visible html elements using only CSS?

I want to apply CSS to only visible html dt and dd elements in following example

 

<div style="vertical-align: top">
                <ul class="list-inner">
                    <dt class=" result-label onlaod-hidden">
                        <label>Name: </label>
                    </dt>
                    <dd class="result-input onlaod-hidden">
                            <asp:TextBox ID="txtProductName " runat="server" />
                    </dd>
                     <dt class=" result-label onlaod-hidden">
                        <label>Price: </label>
                    </dt>
                    <dd class="result-input onlaod-hidden">
                            <asp:TextBox ID="txtPrice" runat="server" />
                    </dd>
 
</dl>
</div