This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes vertical alignment does not work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "vertical alignment does not work" Watch "vertical alignment does not work" New topic
Author

vertical alignment does not work

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917



Items and the image are working like a dream and aligning well vertically,

for reasons unknown the welcome text in the above code does not align vertically in the center, wht am i doing wrong here ?
infact its not even getting 100% height as mentioned in css

using
IE7, Fireox 3



From what i understand, image is an element within a container, so when i say veritically align middle, it aligns itself with respect to its container vertically,
however, i have given the welcome's div too the same attribute, shouldnt the entire div be in the center irrespective of its contents? ???
isnt Height=100% working too ?? (not that i need it, i am just curious why its not working here.)

(note: its not my image, i just googled for it)


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

thats firefox 3.0 not
Fireox

my bad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: vertical alignment does not work
 
Similar Threads
problem in running a servlet
white-space nowrap and DOCTYPE
centering inside div
Page displaying in IE6 and older versions but not in Higher versions, chrome and firefox also.
Absolute Position in IE