471,120 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,120 software developers and data experts.

<div> style changes on page refresh.

nirmalsingh
218 100+
hai all,
i am using asp.net, on first time loading of a page the style is correctly applied for the div but on postback only font style is not applied. i dont know y?
[HTML]<div id="divEmpSearchs" class="popup_scr" style="overflow : auto; width: 150px; position: absolute">
</div>[/HTML]
style:
------
[HTML] .popup_scr
{
visibility:hidden;
border-left:2px solid #000000;
border-top:1px solid #000000;
border-right:1px solid #000000;
border-bottom:5px solid #000000;
background-color:#EBEBEB;
font-family:Verdana;
font-size:12px;
font-weight:bold;
color:#787878;
height:100px;
}[/HTML]
plz help me.
thank you
Apr 17 '08 #1
2 1400
shweta123
692 Expert 512MB
Hi,

If you want to apply the style to Div tag using class attribute , you should not use style attribute.

e.g.

You can write it like this :
Expand|Select|Wrap|Line Numbers
  1. <div id="divEmpSearchs" class="popup_scr" ></div>
hai all,
i am using asp.net, on first time loading of a page the style is correctly applied for the div but on postback only font style is not applied. i dont know y?
[HTML]<div id="divEmpSearchs" class="popup_scr" style="overflow : auto; width: 150px; position: absolute">
</div>[/HTML]
style:
------
[HTML] .popup_scr
{
visibility:hidden;
border-left:2px solid #000000;
border-top:1px solid #000000;
border-right:1px solid #000000;
border-bottom:5px solid #000000;
background-color:#EBEBEB;
font-family:Verdana;
font-size:12px;
font-weight:bold;
color:#787878;
height:100px;
}[/HTML]
plz help me.
thank you
Apr 17 '08 #2
Frinavale
9,735 Expert Mod 8TB
Is your <div> being generated by a Panel or is it a straight <div>?
Are you changing the style at all in your sever code?
Apr 17 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

23 posts views Thread by Mikko Ohtamaa | last post: by
7 posts views Thread by BBB | last post: by
2 posts views Thread by gee.sucka.foo | last post: by
28 posts views Thread by Kent Feiler | last post: by
10 posts views Thread by Summercoolness | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.