Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2008, 02:02 AM
Member
 
Join Date: Jun 2008
Posts: 2
jatrant is on a distinguished road
Java Syntax for making 2 divs same height dynamically.
The title may not make much sense but its a little tricky to explain in a sentence.

What I have is 2 div's that are layered one on top of the other. The reason why is because 1 div has opacity settings (background) and the other is content (on top). The content will be dynamic coming from the database, so this is why I would like to set the "div Background" with the "div dontent" to match in height.

What I basically need is a way for "div content" to tell "div background" what size it should be depending on how long "div content" is.

I would really appreciate it if I could get some help with this issue.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-25-2008, 04:06 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 898
Fubarable is on a distinguished road
Sorry for showing my ignorance, but what's a "div"?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-25-2008, 07:06 PM
Member
 
Join Date: Jun 2008
Posts: 9
kurenai is on a distinguished road
div as in <div>....
i think this is a java script thing.
you could just make an invisible table and give that the background you want and it will wrap to the next line.
if you dont want that.....


you may need to search around for character/ line count or get the curser position or something like that.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-25-2008, 08:55 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 299
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Did the initiater mean to be a division?
I am not aware of java scripts much but if we can set some layout then we can set it gridlayout so that the divisions are equal all the time.

Sorry if i am wrong...
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-25-2008, 10:09 PM
Member
 
Join Date: Jun 2008
Posts: 2
jatrant is on a distinguished road
Sorry Guys I realized that I got the wrong forum for this question. My apologies.
kurenai - I thank you for the suggestion but unfortunately i need both layers to be visible at all times so an invisible table wouldnt do the trick.
Niveditha - No what i meant by div is exactly what kurenai said "html <div>" and my intentions were to get a java script.
But im in the wrong place for this.

Thanks for trying to help, cheers
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collapse all Divs LWCARAB New To Java 1 04-15-2008 08:42 PM
making a count down timer using java saytri New To Java 3 12-29-2007 11:49 PM
dynamising the height of a JPopupMenu iimasd AWT / Swing 6 11-21-2007 12:01 PM
Making connect 4 in java zoe New To Java 1 08-07-2007 08:10 AM
Making a Java web calendar toby Enterprise JavaBeans 1 08-07-2007 08:05 AM


All times are GMT +3. The time now is 12:37 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org