473,396 Members | 2,085 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,396 software developers and data experts.

inner div's space is being shown

10
Hi,
I am using two divs like.
Expand|Select|Wrap|Line Numbers
  1. <div id="d1">
  2. <button b1>
  3. <button b2>
  4. <div id="d2">
  5. <div>
  6. <div>
when I click on button b1,i have to display div2 parallel to div d1. I have written style for that. Its working fine for that.
The problem is div d1 too is showing empty space of size div d2.
please help
Jan 22 '09 #1
6 1185
Dormilich
8,658 Expert Mod 8TB
@hariomt
can you explain that a bit better, I can't make sense of it.

note: your HTML markup is not valid, currently it shows 4 <div>s, and probably your question would be better placed in the HTML forum.
Jan 22 '09 #2
hariomt
10
i am copying the sample code here
Expand|Select|Wrap|Line Numbers
  1. <div id="manageCEAttribute" class="manageCE"style="display:none;top: -610px;">
  2. <table>some code goes here
  3.  <input   type="button" name="deleteCE" onclick"delete">
  4.      </table>
  5.  <div id="deleteCEAttribute" class="deleteCE" style="display:none;">
  6. some code goes here
  7. <div>
  8. </div>
here are the styles I am using
Expand|Select|Wrap|Line Numbers
  1. .manageCE{  
  2.     position:relative;
  3.    top: -575px;
  4.    left: 800px;
  5.    width: 40%;
  6.    height:30%;
  7.    padding: 10px;
  8.    border-top: 1px solid #999;
  9.    border-right: 1px solid #000;
  10.    border-bottom: 1px solid #000;
  11.    border-left: 1px solid #999;
  12.    background-color: #F2F2E6;
  13.   z-index: 505;
  14.  }
  15. .deleteCE{   
  16.   width: 450px;
  17.   position: absolute;
  18.   top: 0px;
  19.   left: -500px;
  20.   padding: 5px;
  21.   border: 2px solid black;
  22.   background-color: #ccc9ba;
  23.   z-index: 510;
  24.  }
after click on deleteCE button i have to display div deleteCEAttribute as a pop up. Its working . The problem is first divs height increses by height of second div
Jan 22 '09 #3
Dormilich
8,658 Expert Mod 8TB
you still have 3 <div>s.
line 1 requires a space before the style attribute.
the button misses a =

maybe html markup errors are causing this....
for HTML validation: The W3C Markup Validation Service
Jan 22 '09 #4
hariomt
10
i have found the cause of issue.
Actually on second div I have two input type buttons. The value of the buttons is taking more space than of div.
is thre any way of displaying button's value in two lines?
Jan 22 '09 #5
Dormilich
8,658 Expert Mod 8TB
not that I'm aware of, but that doesn't mean anything.
Jan 22 '09 #6
gits
5,390 Expert Mod 4TB
i'm not aware of that too ... i think the text could be cropped or something like that ... but in case you really would need the linebreak for the button's text then you may just use a custom DHTML button ...

kind regards
Jan 22 '09 #7

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...
7
by: Barbara de Zoete | last post by:
On one of my pages http://home.wanadoo.nl/b.de.zoete/html/tekeningen.html I have a div containing thumbnails (who ever came up with that word?) to select a larger view of a picture. The div is...
5
by: Haines Brown | last post by:
I want a centered body, 680px wide, having a red bottom margin. The following works well in galeon, but not in IE5, where the bottom margin steals the full width of the viewpoint. That is, the red...
3
by: David Winter | last post by:
This is probably trivial, but I simply don't get it. I have a "position:absolute" type DIV with another one in it. I want the outer DIV to encompass the inner one. I.e., when the inner DIV...
1
by: foldface | last post by:
Hi I'm working with a web site where 99% of the content is dynamic and words can be of any size, e.g. thiswouldbeavalidword. At the moment everything is done using inner tables, I want to move to...
5
by: mt | last post by:
In a nutshell, I'd like to have a list of items, each of which fills out a small table which displays some info about a particular item(the items being a trouble ticket for a tech support ASP-built...
8
by: Lawrence Oluyede | last post by:
Is there a way to treat html tags like simple text? I explain myself, if I have a bunch of xml like <content type="application/xhtml+xml" xml:base="http://loluyede.blogspot.com" xml:lang="en-US"...
3
by: ryanmhuc | last post by:
What I would like is to create an inner div (inner1) which will expand vertically (or the height) to its outer div container (outer). The outer div does not have a set height but will expand when...
3
by: pamelafluente | last post by:
Hi dears, I have a DIV (with some colorful background). On top of this DIV I have another DIV entirely contained and having a transparent background. Both div absolutely positioned. ...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.