Skin help Containers
Last Post 01/10/2007 3:13 PM by markp. 4 Replies.
Author Messages
markp
Nuke Pro
Nuke Pro
Posts:93


--
11/29/2006 5:04 PM

    .containerwrapper_lifeplus{
     width: 100%;
     background-color: Transparent;
     margin-top:5px

    .containeheader_lifeplus {
     background-color: #27408B;
     text-align: center;
     vertical-align: middle;
     min-height: 30px;
     margin-top:15px;
     
    Following along with classes. I am trying to get the text in the header section to display in the center, both horizontally and vertically.  It currently displays center horizontally but at the top of the header section not the middle?  I thought that might need to be indicated in the skin css but that appeare to be for font style only, not postioning. (though I did try adding the vertical-align:middle to in the module header style section, without effect.

    Thank you for any help

     

     

    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    11/30/2006 2:54 AM
    Hello,

    Have you noticed there is a spelling mistake in your code?

    .containeheader_lifeplus

    does this need to be:
    .containerheader_lifeplus ?

    If this fixes the problem, let us know, otherwise can you post the .ascx or .htm file that you are using, thanks,

    Lee
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    markp
    Nuke Pro
    Nuke Pro
    Posts:93


    --
    11/30/2006 1:58 PM
    It was consistant, I copied and pasted it from the html file. I did change it in both places since my intention was to spell out container.
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    11/30/2006 2:22 PM

    Hi Mark,

    I've just had a look in one of my CSS skins. If vertical-align is not consistant I would use padding.

    Something like:

    padding: 15px 0;

    This will add padding to the top and bottom of the title and will therefore centre it in its own space.

    Does this help?

    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    markp
    Nuke Pro
    Nuke Pro
    Posts:93


    --
    01/10/2007 3:13 PM
    Should have posted sooner, this worked great thanks.


    ---