Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default vertical-align not working!?!?!

    I'm trying to vertically align the text, search box and buttons (as displayed in the image below). When I apply a vertical-align property to my css class nothing happens!

    Anyone got any ideas?



    Here's the code that from my template file...

    Code:
    <div class="navMainSearchWrapper">
    <div class="navMainSearch center"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    </div>

  2. #2
    Join Date
    Sep 2006
    Location
    San Antonio, TX, USA
    Posts
    32
    Plugin Contributions
    0

    Default Re: vertical-align not working!?!?!

    To which class are you adding the 'vertical-align' property?
    Do you have a URI for the page so we can view the context?

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: vertical-align not working!?!?!

    I've tried applying the vertical-align property to both classes.

    No URL yet (my site is still not live).

  4. #4
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: vertical-align not working!?!?!

    May be not related, for your information only.
    #navMainSearch in Stylesheet

    And with refer to the sytlesheet.css of v1.3.5, there is only one .center at about line no. 562,
    and only with the following defined.

    .???, #??? {
    text-align: center;
    }
    .
    A New Starter again

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: vertical-align not working!?!?!

    You can also try here in the stylesheet.css

    Code:
    LABEL.inputLabel {
    	width: 11em;
    	float: left;
    vertical-align: middle;
    	}

  6. #6
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: vertical-align not working!?!?!

    Quote Originally Posted by seethrou
    May be not related, for your information only.
    #navMainSearch in Stylesheet

    And with refer to the sytlesheet.css of v1.3.5, there is only one .center at about line no. 562,
    and only with the following defined.



    .
    This really helped! I've solved the problem by adding some padding at 0.4em to the .navMainSearch class (and changing the # to a nice fullstop).

    However, I'm having trouble vertically alining the 'Quick Search:' text (as shown in the image above (1st post).

    I've played around with my stylesheet, but had no luck.

    Any ideas?

  7. #7
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: vertical-align not working!?!?!

    Any URL to peek of?

    Or, may you show what have done to the nav bar.

    .
    A New Starter again

 

 

Similar Threads

  1. Vertical align of text
    By gowzel in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 27 Jun 2011, 10:20 AM
  2. Vertical align images
    By knutsford-software in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Apr 2011, 11:02 AM
  3. vertical center align
    By pokemon3d in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jul 2009, 09:32 PM
  4. vertical-align
    By user2345 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 May 2008, 09:16 PM
  5. Vertical Align issues?
    By SelfProduction in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 11 Sep 2007, 09:53 PM

Posting Permissions

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