SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: jquery.vAlign

  1. #1
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,099
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery.vAlign

    Hello,

    I try to vertically center a div in a wrapper.. For this I was trying jquery.vAlign:
    Code:
    
    $(document).ready(function (e) { 
    	$('#wrapper').vAlign();
    	$('#content').vAlign();
    });
    The problem I have that I need to have a header at the top of the page and the footer at the bottom of the page. But since I need to use the vAlign() on the wrapper everything is centering vertically, unless I use position absolute on header and footer. But that restricting me in many other things is there a work around for this or any other plugin I can use for this purpose
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,354
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Are you trying to do something like this (no js needed).

  3. #3
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,099
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Paul O'B View Post
    Hi,

    Are you trying to do something like this (no js needed).
    Hi Paul. I can indeed work with that. I haven't thought about having the property table-cell for the header and footer. Very smart!
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •