• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with div tag

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use two <div> tags within the same screen one after the other.
Each builds up a table inside it. In the final screen which shows up, the two tables are separated by a gap. I want these tables to be one below the other without any space inbetween them. There is no <br> after the first div closing tag. Can anyone explain me what could be the issue?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to post question on HTML in the appropriate forum. I have moved this post there for you.
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
okay have you tried like having a main container and giving it width same as that of the DIVs you are using and then placing the two inside that main container? or may be defining margin-top same as the height of the first table?
 
Lee Sha
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your suggestion. The actual problem was there is a stylesheet which controls the position of various divs on the screen.

jsp code:

<div id="intervalSel" class="divedwsub" >
<TABLE>
</TABLE>
</div>

Stylesheet Code:

.divedwsub {
top:325px;left:0px;position:absolute
}

By changing the top value I was able to solve the problem. Anyway thanks.
[ November 08, 2007: Message edited by: Lee Sha ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic