Shadows 1.0 text not centering

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Bruce - PhosphorMedia
    replied
    yes, probably the most fundamental "work shift" of the 21st century for us. basically, mines just open all the time.

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Bruce - PhosphorMedia View Post
    try using inspector on the containing div and play with "justify-content" one of those settings might give you the appearance you are looking for.
    LOL, yes Inspector is my friend along with the dev tools.

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    try using inspector on the containing div and play with "justify-content" one of those settings might give you the appearance you are looking for.

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Bruce - PhosphorMedia View Post
    Does u-text-center work with "flex box"? Usually your centering items with a flex grid, you need to use a flex-content directive like these https://css-tricks.com/almanac/prope...stify-content/

    If you want the text inside the containers to be centered, you need to apply the center to the inner container <p>
    I tried applying it to the <p> it still didn't work...

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    Does u-text-center work with "flex box"? Usually your centering items with a flex grid, you need to use a flex-content directive like these https://css-tricks.com/almanac/prope...stify-content/

    If you want the text inside the containers to be centered, you need to apply the center to the inner container <p>

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Matt Zimmermann View Post
    Hi Leslie,

    There should be no reason that isn't working. I have run a couple of tests and that code seems good. Do you have any custom styling for that section that could be overriding the utility class?

    I would need to find a default theme-styles.css file and compare it - I'm seeing a lot of "center" for various t-site-header items.


    Leave a comment:


  • Matt Zimmermann
    replied
    Hi Leslie,

    There should be no reason that isn't working. I have run a couple of tests and that code seems good. Do you have any custom styling for that section that could be overriding the utility class?

    Leave a comment:


  • lesliekirk
    started a topic Shadows 1.0 text not centering

    Shadows 1.0 text not centering

    I'm using the bold code to try and center the text in this div. I'm including what it is contained within.

    Code:
    <section class="o-wrapper t-site-header__masthead">
    
    ...
    
    
    <div class="o-layout o-layout--align-bottom">
    
    ...
    
    <div class="o-layout o-layout--align-center u-width-12 u-width-8--l ">
    
    ....
    
    [B]<div class="o-layout__item u-hidden u-flex--l u-width-3 u-width-3--l u-text-center "><p> My Test </p></div>[/B]
    
    ...
    
    </div>
    
    ...
    
    </div>
    
    ...
    
    </section>
    It is not centering but aligning left. What am I missing?
Working...