Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • kokosz_mk Friend
    #152693

    Hi all.

    I’ve got banner in user 1 and in right position.
    How can I center banners in these positions ??

    gray Friend
    #350348

    If the banner is an image try by adding in template.css

    #Mod0 {
    display: block;
    margin-left: auto;
    margin-right: auto
    }

    kokosz_mk Friend
    #350903

    The banner is an image, but the code doesn’t work.
    Any ideas ?

    TAnne Mills Friend
    #350915

    Can you post your URL?

    gray Friend
    #350935

    <em>@gray 187090 wrote:</em><blockquote>If the banner is an image try by adding in template.css

    #Mod0 {
    display: block;
    margin-left: auto;
    margin-right: auto
    }</blockquote>

    Try the following:
    #Mod0 {
    text-align:center;
    margin-top:0px;
    margin-bottom:0px;
    padding:0px;
    }

    And make sure the div in which the respective image is placed have class=Mod0. Otherwise apply respective class/id to the CSS style declaration.

    kokosz_mk Friend
    #351031

    url: beta.erp-portal.pl
    banner under main menu and banner in right module

    gray Friend
    #351044

    Banner under main menu in placed in
    <div class=”banneritem”><div>
    The one in the right module in
    <div class=”bannergroup”></div>

    Just create new CSS style declarations like
    div.banneritem {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    }

    or try the second variant I proposed above.

    kokosz_mk Friend
    #351135

    It doesn’t work. When I set for example margin-left: 100px banner changes position, but auto does nothing ?

    gray Friend
    #351148

    <em>@kokosz_mk 188119 wrote:</em><blockquote>It doesn’t work. When I set for example margin-left: 100px banner changes position, but auto does nothing ?</blockquote>

    I checked with your site. For the banner under main menu, worked <div class=”banneritem” style=”text-align:center;”>.
    It worked to the one at the right module.

    So, just apply
    div.banneritem {
    text-align:center;
    }

    and check in different browsers (I worked in Opera).

    Hope it helps.

    lamvt Friend
    #351151

    Open your template: http://beta.erp-portal.pl/templates/ja_teline_iii/css/template.css
    Line 1201

    #ja-topsl .moduletable {
    border-bottom:0 none;
    }

    Chnages to:

    #ja-topsl .moduletable {
    border-bottom:0 none;
    text-align:center;
    }

    kokosz_mk Friend
    #351227

    Thanks lamvt and gray.
    It worked.

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 4 voices, and was last updated by  kokosz_mk 14 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum