Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Height issue  RSS feed

 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have the below code, where despite writing 'min-height:100%;', I can see that the black square border appears in the middle of the page.
I suspected it appeared due to background-image but that's not the case, even writing 'html { height:100%;} didn't solve the issue.

Please suggest.

height.PNG
[Thumbnail for height.PNG]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65897
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using percentages with height can be problematic. In this case, 100% of what?

You might try setting a height of 100% on the html tag, and see if that helps.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Bear but setting actually brings up the border near the header section.
height2.PNG
[Thumbnail for height2.PNG]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65897
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the CSS debugger to see what's adding the border (or margin, or padding, or positioning, or whatever's causing it).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!