472,950 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 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 1504
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

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

Similar topics

23
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
2
by: Marcus Otmarsen | last post by:
Ok, the situation is as follows: I defined a <DIV> like: <div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div> This pane is...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
7
by: BBB | last post by:
I have a web form with a <div> section ... I have it setup so the Update/Cancel buttons are fixed at the bottom of the screen while the content of the form is in the <div> and scrolls. Nice to the...
9
by: Julia Briggs | last post by:
How do I construct a <iframe> or equivalent for FireFox/NS browsers, inside a screen centered <div> tag? Can it be done?
2
by: gee.sucka.foo | last post by:
I have a few thumbnail images each surrounded by a few links. So I put the thumbnail and the links in a div tag and set the div's to float:left. So my intent is to have the thumbnails wrap at the...
28
by: Kent Feiler | last post by:
1. Here's some html from a W3C recommendations page. <P>aaaaaaaaa<DIV>bbbbbbbbb</DIV><DIV>cccccccc<P>dddddddd</DIV> 2.Although I didn't think it would make any difference, I tried it with the...
10
by: Summercoolness | last post by:
so i am starting to use more of <br /and <div style="clear: both" / which is the XHTML style... now, won't those actually confuse the old browsers? for example, will the old browser treat the...
4
by: harryusa | last post by:
I am trying to center 2 images concentrically which are z-indexed to lay on top of each other making an image with a border from another image that has a transparent center. I need the images to be...
8
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.