473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1519
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.